Fix #4868: Now can edit external user perms on private projects

stable
Jesús Espino 2017-01-10 11:00:31 +01:00 committed by David Barragán Merino
parent 62cd19cb95
commit 066009b962
1 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,7 @@ class RolesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fil
"$q",
"$tgLocation",
"$tgNavUrls",
"$tgModel",
"tgAppMetaService",
"$translate",
"tgErrorHandlingService",
@ -54,7 +55,7 @@ class RolesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fil
]
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, @navUrls,
@appMetaService, @translate, @errorHandlingService, @projectService) ->
@model, @appMetaService, @translate, @errorHandlingService, @projectService) ->
bindMethods(@)
@scope.sectionName = "ADMIN.MENU.PERMISSIONS"
@ -72,6 +73,7 @@ class RolesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fil
loadProject: ->
project = @projectService.project.toJS()
project = @model.make_model("projects", project)
if not project.i_am_admin
@errorHandlingService.permissionDenied()