Remove all .admin usage

This commit is contained in:
Johannes Zellner
2020-02-24 17:29:20 +01:00
parent 2674160acc
commit 7ce4effc2d
6 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -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';