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
+6 -1
View File
@@ -480,7 +480,12 @@
<br/>
<div class="text-left">
<h2>{{ 'users.groups.title' | tr }}<button class="btn btn-primary btn-outline pull-right" ng-click="groupAdd.show()"><i class="fa fa-plus"></i> {{ 'users.groups.newGroupAction' | tr }}</button></h2>
<h2>
{{ 'users.groups.title' | tr }}
<button class="btn btn-primary btn-outline pull-right" ng-click="groupAdd.show()">
<i class="fa fa-plus"></i> {{ 'users.groups.newGroupAction' | tr }}
</button>
</h2>
</div>
<div class="card card-large">
+5
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 = {};