mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-46550 logs: Fix incorrect url
Thanks to Nadav Kavalerchik for the suggestion on patch
This commit is contained in:
parent
b5dbb126f9
commit
fa31be3b7f
@ -72,7 +72,7 @@ class role_capabilities_updated extends base {
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
if ($this->contextlevel === CONTEXT_SYSTEM) {
|
||||
if ($this->contextlevel == CONTEXT_SYSTEM) {
|
||||
return new \moodle_url('/admin/roles/define.php', array('action' => 'view', 'roleid' => $this->objectid));
|
||||
} else {
|
||||
return new \moodle_url('/admin/roles/override.php', array('contextid' => $this->contextid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user