From a542f705518918b763b27a222ceef8c65d1862a3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 1 Jan 2009 00:42:30 +0000 Subject: Allow admins to do anything --- core/helpers/access.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/helpers') 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) { -- cgit v1.2.3