summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-30 23:42:32 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-30 23:42:32 -0800
commit359f6108b921938aa4445584b1e16c757467ae79 (patch)
treea00e6be72bfaf30740eb13346e934cc60670fe1f
parenta79d20a36135d50f77a7f11046b1d7ee392d46c7 (diff)
Remove edit permissions across the board.
-rw-r--r--modules/tag/tests/Tags_Rest_Helper_Test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tag/tests/Tags_Rest_Helper_Test.php b/modules/tag/tests/Tags_Rest_Helper_Test.php
index 0254adc8..a1713811 100644
--- a/modules/tag/tests/Tags_Rest_Helper_Test.php
+++ b/modules/tag/tests/Tags_Rest_Helper_Test.php
@@ -50,7 +50,8 @@ class Tags_Rest_Helper_Test extends Gallery_Unit_Test_Case {
}
public function post_fails_without_permissions_test() {
- access::deny(identity::everybody(), "edit", item::root());
+ // We have to remove edit permissions from everywhere
+ Database::instance()->query("UPDATE {access_caches} SET edit_1=0");
identity::set_active_user(identity::guest());
try {