Remove all .admin usage
This commit is contained in:
@@ -135,7 +135,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
|
||||
$scope.appInstall.customAuth = !(manifest.addons['ldap'] || manifest.addons['oauth']);
|
||||
|
||||
// for spaces users, the User management is hidden. thus the admin flag check
|
||||
if (!$scope.user.admin) {
|
||||
if (!$scope.user.isAtLeastAdmin) {
|
||||
// just install it with access restriction as just the user
|
||||
var me = $scope.users.find(function (u) { return u.id === $scope.user.id; });
|
||||
$scope.appInstall.accessRestrictionOption = 'groups';
|
||||
|
||||
Reference in New Issue
Block a user