1
0
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:
Sylvain 2017-10-10 16:30:28 +02:00
parent 33b146d243
commit 14592c1e18

View File

@ -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'