Skip to content

Commit

Permalink
Fixed updating when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
ssl authored Aug 25, 2020
1 parent e8221bf commit 6d87e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function json()
return $this->convert('CSRF token is not valid');
}

if (!$this->user->isLoggedIn() && $this->post('action') != 'login' && $this->post('action') != 'install') {
if (!$this->user->isLoggedIn() && $this->post('action') != 'login' && $this->post('action') != 'install' && $this->post('action') != 'update') {
return $this->convert('You need to be logged in to perform this action.');
}

Expand Down

0 comments on commit 6d87e01

Please sign in to comment.