Skip to content

Commit

Permalink
Fixed user/api permission lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Aug 18, 2024
1 parent 548a6f9 commit 5930e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/admin/controller/user/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ protected function getForm(): void {
* @return bool
*/
protected function validateForm(): bool {
if (!$this->user->hasPermission('modify', 'user/user')) {
if (!$this->user->hasPermission('modify', 'user/api')) {
$this->error['warning'] = $this->language->get('error_permission');
}

Expand Down

0 comments on commit 5930e73

Please sign in to comment.