Allow to set access restrictions of applinks during creation

This commit is contained in:
Johannes Zellner
2022-07-08 16:51:04 +02:00
parent edd9c5bcdd
commit 67ea08e638
2 changed files with 33 additions and 3 deletions

View File

@@ -101,6 +101,10 @@ angular.module('Application').controller('AppsController', ['$scope', '$translat
accessRestrictionOption: 'any',
accessRestriction: { users: [], groups: [] },
isAccessRestrictionValid: function () {
return !!($scope.applinksAdd.accessRestriction.users.length || $scope.applinksAdd.accessRestriction.groups.length);
},
show: function () {
$scope.applinksAdd.error = {};
$scope.applinksAdd.busy = false;
@@ -159,8 +163,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$translat
accessRestriction: { users: [], groups: [] },
isAccessRestrictionValid: function () {
var tmp = $scope.applinksEdit.accessRestriction;
return !!(tmp.users.length || tmp.groups.length);
return !!($scope.applinksEdit.accessRestriction.users.length || $scope.applinksEdit.accessRestriction.groups.length);
},
show: function (applink) {