mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +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
|
||||
|
||||
## list of groups
|
||||
$scope.groups = groups
|
||||
$scope.groups = groups.filter (g) -> !g.disabled
|
||||
|
||||
## Form action on the above URL
|
||||
$scope.method = 'patch'
|
||||
|
Loading…
x
Reference in New Issue
Block a user