summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-02 13:37:19 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-02 13:37:19 -0700
commitffb3abdcace93c8397e4660dc0e45d932903dd5a (patch)
treebf638e4e83acd3a3c6388793f6d30e1df13a80a7 /modules
parent76fcb8e654823fc9f829f7b6eced5905318634ec (diff)
Restore "view" permissions on the root album in teardown.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/tests/Access_Helper_Test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/tests/Access_Helper_Test.php b/modules/gallery/tests/Access_Helper_Test.php
index 7012a487..d71bf971 100644
--- a/modules/gallery/tests/Access_Helper_Test.php
+++ b/modules/gallery/tests/Access_Helper_Test.php
@@ -38,6 +38,10 @@ class Access_Helper_Test extends Unit_Test_Case {
$user->delete();
}
} catch (Exception $e) { }
+
+ // Reset some permissions that we mangle below
+ $root = ORM::factory("item", 1);
+ access::allow(group::everybody(), "view", $root);
}
public function setup() {