diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-10 20:34:32 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-10 20:34:32 +0000 |
commit | 068c44e2011aee23ad6f43c0e238c2dba65da8e3 (patch) | |
tree | fc055ba29ceb97997853e78520049f9b1d31874d /modules/user/helpers | |
parent | 5342578e6d24c59db74747024e1bdc5bcf41ae2d (diff) |
access::allow/deny/reset functions will now throw an exception if you
don't pass in a Group_Model as the argument. This prevents us from
setting permissions on the wrong group by accidentally passing in a
User_Model.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/user_installer.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index c677d01a..ccab1f61 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -78,15 +78,11 @@ class user_installer { module::set_version("user", 1); $root = ORM::factory("item", 1); - access::allow($guest, "view", $root); - access::allow($guest, "view_full", $root); + access::allow($everybody, "view", $root); + access::allow($everybody, "view_full", $root); access::allow($registered, "view", $root); access::allow($registered, "view_full", $root); - - access::allow($admin, "view", $root); - access::allow($admin, "view_full", $root); - access::allow($admin, "edit", $root); } } |