summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/access.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php
index 4bfe89d4..a42391bd 100644
--- a/core/helpers/access.php
+++ b/core/helpers/access.php
@@ -82,6 +82,10 @@ class access_Core {
return false;
}
+ if (user::active()->admin) {
+ return true;
+ }
+
$resource = $perm_name == "view" ?
$item : model_cache::get("access_cache", $item->id, "item_id");
foreach (user::group_ids() as $id) {