Permalink
Browse files

Don't use $courseid in require_login(). User may want to see old orde…

…rs. Course enrolment is not required.
  • Loading branch information...
1 parent a37c274 commit e13958e08badb1b9e0f923f748d88871ae287b6f ethem committed Apr 26, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/authorize/index.php
@@ -10,7 +10,7 @@
$userid = optional_param('user', 0, PARAM_INT);
/// Only site users can access to this page
- require_login($courseid);
+ require_login(); // Don't use $courseid! User may want to see old orders.
if (isguest()) {
error("Guests cannot use this page.");

0 comments on commit e13958e

Please sign in to comment.