Get current project settings to load custom homepage

stable
Daniel García 2018-11-12 12:11:36 +01:00 committed by Alex Hermida
parent a3dbf17b79
commit d8d05bea14
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class ProjectRouterController
sections = @tgSections.list() sections = @tgSections.list()
project = @projectService.project.toJS() project = @projectService.project.toJS()
@rs.userProjectSettings.list().then (userProjectSettings) -> @rs.userProjectSettings.list({project: project.id}).then (userProjectSettings) ->
settings = _.find(userProjectSettings, {"project": project.id}) settings = _.find(userProjectSettings, {"project": project.id})
return if !settings return if !settings