Commit 6186bc44 by Scott

Return login error earlier in permissions function

parent d98e877b
...@@ -866,8 +866,12 @@ ...@@ -866,8 +866,12 @@
{ {
if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); } if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
if ($permit >= QA_PERMIT_ALL) if ($permit >= QA_PERMIT_ALL) {
$error = false; $error = false;
}
elseif (!isset($userid)) {
return 'login';
}
elseif ($permit >= QA_PERMIT_USERS) elseif ($permit >= QA_PERMIT_USERS)
$error = isset($userid) ? false : 'login'; $error = isset($userid) ? false : 'login';
......
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