mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
removed check for guest after guests have already been rejected from page
This commit is contained in:
parent
855c0839fc
commit
160888f6cf
@ -48,7 +48,7 @@
|
||||
|
||||
//if the user is an admin or course teacher then allow the user to
|
||||
//assign categories to other uses than personal
|
||||
if (isguest() || !( isadmin() || $submitters == SUBMITTERS_ALL_ACCOUNT_HOLDERS || ($submitters == SUBMITTERS_ADMIN_AND_TEACHER && $isteacher) ) ) {
|
||||
if (!( isadmin() || $submitters == SUBMITTERS_ALL_ACCOUNT_HOLDERS || ($submitters == SUBMITTERS_ADMIN_AND_TEACHER && $isteacher) ) ) {
|
||||
error(get_string('noguestpost', 'forum'), $referrer);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user