From 18a6614a11cf39a29f5705edabc710688da357e6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 10 Dec 2008 07:05:49 +0000 Subject: Change all access API methods to take ORMs instead of ids. This will minimize reloading objects from the database. --- core/helpers/core_installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/core_installer.php') diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php index e8aa0d24..052b9cb5 100644 --- a/core/helpers/core_installer.php +++ b/core/helpers/core_installer.php @@ -101,8 +101,8 @@ class core_installer { ->save(); access::add_item($root); - access::allow(0, "view", $root->id); - access::deny(0, "edit", $root->id); + access::allow(0, "view", $root); + access::deny(0, "edit", $root); module::set_version("core", 1); } -- cgit v1.2.3