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

View File

@@ -31,7 +31,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
// NOTE: this function is exported and called from the appstore.js
$scope.updateSubscriptionStatus = function () {
if (!Client.getUserInfo().admin) return;
if (!Client.getUserInfo().isAtLeastAdmin) return;
Client.getSubscription(function (error, subscription) {
if (error && error.statusCode === 412) return; // ignore if not yet registered