Force the user to set at least one access restriction group

This commit is contained in:
Johannes Zellner
2016-02-19 18:02:51 +01:00
parent 86f14b0149
commit f5189e0a56
2 changed files with 9 additions and 3 deletions

View File

@@ -32,7 +32,12 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
keyFileName: '',
memoryLimit: $scope.memoryTicks[0],
accessRestrictionOption: '',
accessRestriction: { users: [], groups: [] }
accessRestriction: { users: [], groups: [] },
isAccessRestrictionValid: function () {
var tmp = $scope.appConfigure.accessRestriction;
return !!(tmp.users.length || tmp.groups.length);
}
};
$scope.appUninstall = {