Commit 30b002b1 authored by Leigh Stoller's avatar Leigh Stoller

Allow unapproved users to join another project.

parent 87e27571
......@@ -50,7 +50,10 @@ $optargs = OptionalPageArguments("asguest", PAGEARG_BOOLEAN,
# Redirect logged in user.
#
if ($this_user) {
if (Instance::UserHasInstances($this_user)) {
if ($CHECKLOGIN_STATUS & CHECKLOGIN_UNAPPROVED) {
header("Location: $APTBASE/signup.php");
}
elseif (Instance::UserHasInstances($this_user)) {
header("Location: $APTBASE/myexperiments.php");
}
else {
......
......@@ -34,7 +34,8 @@ $debug = 0;
RedirectSecure();
$this_user = CheckLogin($check_status);
if (isset($this_user)) {
CheckLoginOrDie();
# Allow unapproved users to join multiple groups ...
CheckLoginOrDie(CHECKLOGIN_UNAPPROVED);
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment