MDL-51702 blocks: Allow permission overrides in dashboard

This commit is contained in:
David Monllao
2016-01-21 08:57:35 +08:00
parent 13c88d9b8d
commit e7e317a5fc
+1 -1
View File
@@ -1093,7 +1093,7 @@ class block_manager {
}
// Assign roles icon.
if ($this->page->pagetype != 'my-index' && has_capability('moodle/role:assign', $block->context)) {
if (has_capability('moodle/role:assign', $block->context)) {
//TODO: please note it is sloppy to pass urls through page parameters!!
// it is shortened because some web servers (e.g. IIS by default) give
// a 'security' error if you try to pass a full URL as a GET parameter in another URL.