]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from 1.7.
authorvyshane <vyshane>
Mon, 29 Jan 2007 06:02:17 +0000 (06:02 +0000)
committervyshane <vyshane>
Mon, 29 Jan 2007 06:02:17 +0000 (06:02 +0000)
mod/forum/subscribe.php

index 487be0e2cd96b191e527a1ac9e925363d54337a6..bd9c84d98c2ef50ea82342194c7512039ab8573f 100644 (file)
@@ -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)) {