Skip to content

Commit

Permalink
block MDL-19946 fix "cannot add block" bug (Tim's fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome committed Jul 30, 2009
1 parent f6486af commit 1d7e341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blocklib.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ public function process_url_add() {

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'));
}

Expand Down

0 comments on commit 1d7e341

Please sign in to comment.