stricter user check in AbstractUserAction

This commit is contained in:
Andreas Gohr 2020-11-25 20:57:38 +01:00
parent 601a1f6035
commit 190782098e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ abstract class AbstractUserAction extends AbstractAclAction {
public function checkPreconditions() {
parent::checkPreconditions();
global $INPUT;
if(!$INPUT->server->str('REMOTE_USER')) {
if($INPUT->server->str('REMOTE_USER') === '') {
throw new ActionUserRequiredException();
}
}