diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-18 11:57:23 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-18 11:57:23 -0800 |
commit | 4eafe97b4858cb8d1b3367574f7e7ef473127d7c (patch) | |
tree | bcd23189d1482a023cc197abc1589a17016ea7d7 | |
parent | 0dc184e99f0ca607774a68257432a9a981f4d5b7 (diff) |
Reload $item after removing view permissions.
-rw-r--r-- | modules/gallery/tests/Access_Helper_Test.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/tests/Access_Helper_Test.php b/modules/gallery/tests/Access_Helper_Test.php index 084bfb47..b2244766 100644 --- a/modules/gallery/tests/Access_Helper_Test.php +++ b/modules/gallery/tests/Access_Helper_Test.php @@ -74,6 +74,7 @@ class Access_Helper_Test extends Unit_Test_Case { access::deny(identity::everybody(), "view", $item); access::deny(identity::registered_users(), "view", $item); + $item->reload(); $user = identity::create_user("access_test", "Access Test", ""); foreach ($user->groups() as $group) { |