Restrict user groups

This commit is contained in:
Johannes Zellner
2021-01-13 14:49:23 +01:00
parent 5fc8a50ae1
commit 74faa29012
2 changed files with 11 additions and 1 deletions

View File

@@ -279,6 +279,11 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
selectedUsers: [],
show: function () {
if (!$scope.config.features.userGroups && $scope.groups.length > 0) {
$('#subscriptionRequiredModal').modal('show');
return;
}
$scope.groupAdd.busy = false;
$scope.groupAdd.error = {};