From d0f0cab776cc9502f10cfb81a2af4dccf597b3ee Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 29 Jul 2009 03:21:07 +0000 Subject: [PATCH] blocks: MDL-19946 And another bug fix. --- lib/blocklib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index a880f988a0..3446c6c871 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -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')); } -- 2.39.5