summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/tests/Item_Model_Test.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php
index fcb5c2ad..83c9f79d 100644
--- a/modules/gallery/tests/Item_Model_Test.php
+++ b/modules/gallery/tests/Item_Model_Test.php
@@ -362,6 +362,7 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
$response = item::root()->as_restful_array();
$this->assert_true($response["can_edit"]);
+ access::deny(identity::everybody(), "edit", item::root());
identity::set_active_user(identity::guest());
$response = item::root()->as_restful_array();
$this->assert_false($response["can_edit"]);
@@ -371,6 +372,7 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
$response = item::root()->as_restful_array();
$this->assert_true($response["can_add"]);
+ access::deny(identity::everybody(), "add", item::root());
identity::set_active_user(identity::guest());
$response = item::root()->as_restful_array();
$this->assert_false($response["can_add"]);