Merge branch 'bugfix/get-files' into 'dev'

Fix logical issue with get files perms check

See merge request crafty-controller/crafty-4!654
This commit is contained in:
Iain Powrie 2023-10-21 11:57:19 +00:00
commit 37a79922ac
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
### New features ### New features
TBD TBD
### Bug fixes ### Bug fixes
TBD - Fix logic issue with `get_files` API permissions check ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/654))
### Tweaks ### Tweaks
- Auto refresh Crafty Announcements on 30m interval ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/653)) - Auto refresh Crafty Announcements on 30m interval ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/653))
### Lang ### Lang

View File

@ -86,7 +86,7 @@ class ApiServersServerFilesIndexHandler(BaseApiHandler):
not in self.controller.server_perms.get_user_id_permissions_list( not in self.controller.server_perms.get_user_id_permissions_list(
auth_data[4]["user_id"], server_id auth_data[4]["user_id"], server_id
) )
or EnumPermissionsServer.BACKUP and EnumPermissionsServer.BACKUP
not in self.controller.server_perms.get_user_id_permissions_list( not in self.controller.server_perms.get_user_id_permissions_list(
auth_data[4]["user_id"], server_id auth_data[4]["user_id"], server_id
) )