Prevent project links issues with anonymous links
parent
53a112d030
commit
80ef4dc41c
|
@ -45,8 +45,10 @@ class SectionsService extends taiga.Service
|
||||||
defaultHomePage = "timeline"
|
defaultHomePage = "timeline"
|
||||||
|
|
||||||
projects = @currentUserService.projects?.get("all")
|
projects = @currentUserService.projects?.get("all")
|
||||||
project = projects.find (p) -> return p.get('slug') == projectSlug
|
if not projects
|
||||||
|
return defaultHomePage
|
||||||
|
|
||||||
|
project = projects.find (p) -> return p.get('slug') == projectSlug
|
||||||
if not project
|
if not project
|
||||||
return defaultHomePage
|
return defaultHomePage
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue