Fixed the ofice typo in the permission names to office

This commit is contained in:
2026-06-13 23:25:27 +02:00
parent 98d5d1cb18
commit a7e3c54a89
5 changed files with 12 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ if ($API_office_stompjes->request_method === 'GET') {
} elseif ($API_office_stompjes->request_method === 'DELETE') {
# Only superuser can delete permission due to fact that the backend needs programming when setting a permission
$API_office_stompjes->checkPermissions('ofice-stompjes', 'RW');
$API_office_stompjes->checkPermissions('office-stompjes', 'RW');
# when called from the frontend will not be forwarding to a url since when its called from the frontend it doesnt need a redirection
$API_office_stompjes->return_url = false;