1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

Merge remote-tracking branch 'origin/v4.0'

This commit is contained in:
Adolfo Gómez García 2025-01-08 18:17:38 +01:00
commit 6875e586cb
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -141,7 +141,7 @@ class Permissions(Handler):
if len(self._args) == 6:
self._args = [self._args[0]+ '-' + self._args[1], self._args[2], self._args[3], self._args[4], self._args[5]]
if len(self._args) != 5:
if len(self._args) != 5 and len(self._args) != 1:
raise exceptions.rest.RequestError('Invalid request')
perm = uds.core.types.permissions.PermissionType.from_str(self._params.get('perm', '0'))