Skip to content

Commit fd61818

Browse files
committed
Fixed bug in password validation
1 parent fa33875 commit fd61818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

www/go/core/model/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ private function validatePasswordChange(): bool
580580
}
581581

582582
// current user mayChangeUsers and is not changing itself or an admin
583-
if(go()->getModel()->getUserRights()->mayChangeUsers && $this->id != App::get()->getAuthState()->getUserId() && !$this->isAdmin()) {
583+
if(go()->getAuthState() && go()->getModel()->getUserRights()->mayChangeUsers && $this->id != App::get()->getAuthState()->getUserId() && !$this->isAdmin()) {
584584
return true;
585585
}
586586

0 commit comments

Comments
 (0)