From 066009b96260a0486d536872024d0c222be48410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 10 Jan 2017 11:00:31 +0100 Subject: [PATCH] Fix #4868: Now can edit external user perms on private projects --- app/coffee/modules/admin/roles.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/admin/roles.coffee b/app/coffee/modules/admin/roles.coffee index 9d4348cb..01c972dd 100644 --- a/app/coffee/modules/admin/roles.coffee +++ b/app/coffee/modules/admin/roles.coffee @@ -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()