mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merged from 1.7.
This commit is contained in:
parent
d14d6f7903
commit
1466926adf
@ -95,9 +95,6 @@
|
||||
error("Could not unsubscribe you from that forum", $_SERVER["HTTP_REFERER"]);
|
||||
}
|
||||
|
||||
} else if (has_capability('moodle/legacy:guest', $context, $user->id, false)) { // Guests can not subscribe
|
||||
error("Guests can not subscribe to forums", $_SERVER["HTTP_REFERER"]);
|
||||
|
||||
} else { // subscribe
|
||||
if ($forum->forcesubscribe == FORUM_DISALLOWSUBSCRIBE &&
|
||||
!has_capability('mod/forum:managesubscriptions', $context)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user