]> git.mjollnir.org Git - moodle.git/commitdiff
blocks: MDL-19946 And another bug fix.
authortjhunt <tjhunt>
Wed, 29 Jul 2009 03:21:07 +0000 (03:21 +0000)
committertjhunt <tjhunt>
Wed, 29 Jul 2009 03:21:07 +0000 (03:21 +0000)
lib/blocklib.php

index a880f988a0b77f48afc224dc362cdf5ccfe7cc08..3446c6c8712494d54c778f628b1de011ed1d8f4a 100644 (file)
@@ -762,7 +762,7 @@ class block_manager {
 
         confirm_sesskey();
 
-        if (!$page->user_is_editing() && !$this->page->user_can_edit_blocks()) {
+        if (!$this->page->user_is_editing() && !$this->page->user_can_edit_blocks()) {
             throw new moodle_exception('nopermissions', '', $this->page->url->out(), get_string('addblock'));
         }