mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
community MDL-23170 fix user_can_edit
This commit is contained in:
parent
9358f71f8b
commit
029a311744
@ -43,7 +43,7 @@ class block_community extends block_list {
|
||||
if (!has_capability('moodle/community:add', get_context_instance(CONTEXT_SYSTEM))) { // Should be page context?
|
||||
return false;
|
||||
}
|
||||
parent::user_can_edit();
|
||||
return parent::user_can_edit();
|
||||
}
|
||||
|
||||
function get_content() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user