From 5930e7357189d9fe45ecea0498fbd7f199902bec Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Sun, 18 Aug 2024 15:41:10 -0400 Subject: [PATCH] Fixed user/api permission lookup --- upload/admin/controller/user/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/admin/controller/user/api.php b/upload/admin/controller/user/api.php index 56c10e104..1ae608ac6 100644 --- a/upload/admin/controller/user/api.php +++ b/upload/admin/controller/user/api.php @@ -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'); }