There was an error while loading. Please reload this page.
1 parent fa33875 commit fd61818Copy full SHA for fd61818
1 file changed
www/go/core/model/User.php
@@ -580,7 +580,7 @@ private function validatePasswordChange(): bool
580
}
581
582
// 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()) {
+ if(go()->getAuthState() && go()->getModel()->getUserRights()->mayChangeUsers && $this->id != App::get()->getAuthState()->getUserId() && !$this->isAdmin()) {
584
return true;
585
586
0 commit comments