block MDL-19946 fix "cannot add block" bug (Tim's fix)

This commit is contained in:
jerome
2009-07-30 09:40:11 +00:00
parent f6486af888
commit 1d7e341e8f
+1 -1
View File
@@ -880,7 +880,7 @@ class block_manager {
confirm_sesskey();
if ($this->page->user_can_edit_blocks()) {
if (!$this->page->user_can_edit_blocks()) {
throw new moodle_exception('nopermissions', '', $this->page->url->out(), get_string('addblock'));
}