[Backport] remove view project permission when the user has not other permissions
parent
4a41b1f890
commit
5e9453324e
|
@ -410,7 +410,10 @@ RolePermissionsDirective = ($rootscope, $repo, $confirm, $compile) ->
|
||||||
activePermissions = _.sortBy(_.map(activePermissions, (t) ->
|
activePermissions = _.sortBy(_.map(activePermissions, (t) ->
|
||||||
permission = angular.element(t).parents(".category-item").data("id")
|
permission = angular.element(t).parents(".category-item").data("id")
|
||||||
))
|
))
|
||||||
|
|
||||||
|
if activePermissions.length
|
||||||
activePermissions.push("view_project")
|
activePermissions.push("view_project")
|
||||||
|
|
||||||
return activePermissions
|
return activePermissions
|
||||||
|
|
||||||
target = angular.element(event.currentTarget)
|
target = angular.element(event.currentTarget)
|
||||||
|
|
Loading…
Reference in New Issue