Prevent project links issues with anonymous links

stable
Álex Hermida 2018-11-27 16:39:51 +01:00 committed by Alex Hermida
parent 53a112d030
commit 80ef4dc41c
1 changed files with 3 additions and 1 deletions

View File

@ -45,8 +45,10 @@ class SectionsService extends taiga.Service
defaultHomePage = "timeline"
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
return defaultHomePage