diff options
Diffstat (limited to 'admin/private')
-rw-r--r-- | admin/private/permissions.json | 8 | ||||
-rw-r--r-- | admin/private/permissions.php | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/admin/private/permissions.json b/admin/private/permissions.json index 32be506..10c9362 100644 --- a/admin/private/permissions.json +++ b/admin/private/permissions.json @@ -1,5 +1,5 @@ { - "74bca7d2-4694-477c-8bc1-9003315abbee": [ + "51daefd0-656d-4cf7-8ac1-ea94d8b17780": [ "login", "home", "serverTemp", @@ -18,5 +18,11 @@ "quotas", "getQuota", "neutroning" + ], + "74bca7d2-4694-477c-8bc1-9003315abbee": [ + "*", + "neutron", + "addresses", + "login" ] }
\ No newline at end of file diff --git a/admin/private/permissions.php b/admin/private/permissions.php index 6ad7057..8e6f456 100644 --- a/admin/private/permissions.php +++ b/admin/private/permissions.php @@ -11,7 +11,7 @@ if (isset($_OVERRIDEPERMISSION)) { $permsOkay = false; foreach ($perms as $user => $uperms) { if ($user === $_DATA['id']) { - if (in_array($requested, $uperms)) { + if (in_array($requested, $uperms) || in_array("*", $uperms)) { $permsOkay = true; } } |