mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-17 11:54:22 +01:00
prevent user from switching to disabled group
This commit is contained in:
parent
33b146d243
commit
14592c1e18
@ -73,7 +73,7 @@ Application.Controllers.controller "EditProfileController", ["$scope", "$rootSco
|
|||||||
$scope.actionUrl = "/api/members/" + $scope.currentUser.id
|
$scope.actionUrl = "/api/members/" + $scope.currentUser.id
|
||||||
|
|
||||||
## list of groups
|
## list of groups
|
||||||
$scope.groups = groups
|
$scope.groups = groups.filter (g) -> !g.disabled
|
||||||
|
|
||||||
## Form action on the above URL
|
## Form action on the above URL
|
||||||
$scope.method = 'patch'
|
$scope.method = 'patch'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user