removed check for guest after guests have already been rejected from page

This commit is contained in:
dhawes 2005-01-31 11:39:14 +00:00
parent 855c0839fc
commit 160888f6cf

View File

@ -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);
}