Merge pull request #1201 from taigaio/issue/4868-cant-edit-external-user-perms
Fix #4868: Now can edit external user perms on private projectsstable
commit
d4c6e9069b
|
@ -47,6 +47,7 @@ class RolesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fil
|
||||||
"$q",
|
"$q",
|
||||||
"$tgLocation",
|
"$tgLocation",
|
||||||
"$tgNavUrls",
|
"$tgNavUrls",
|
||||||
|
"$tgModel",
|
||||||
"tgAppMetaService",
|
"tgAppMetaService",
|
||||||
"$translate",
|
"$translate",
|
||||||
"tgErrorHandlingService",
|
"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,
|
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, @navUrls,
|
||||||
@appMetaService, @translate, @errorHandlingService, @projectService) ->
|
@model, @appMetaService, @translate, @errorHandlingService, @projectService) ->
|
||||||
bindMethods(@)
|
bindMethods(@)
|
||||||
|
|
||||||
@scope.sectionName = "ADMIN.MENU.PERMISSIONS"
|
@scope.sectionName = "ADMIN.MENU.PERMISSIONS"
|
||||||
|
@ -72,6 +73,7 @@ class RolesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fil
|
||||||
|
|
||||||
loadProject: ->
|
loadProject: ->
|
||||||
project = @projectService.project.toJS()
|
project = @projectService.project.toJS()
|
||||||
|
project = @model.make_model("projects", project)
|
||||||
|
|
||||||
if not project.i_am_admin
|
if not project.i_am_admin
|
||||||
@errorHandlingService.permissionDenied()
|
@errorHandlingService.permissionDenied()
|
||||||
|
|
Loading…
Reference in New Issue