mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-20 06:50:23 +03:00
Update permissions validation to allow single argument requests
This commit is contained in:
parent
a449c93464
commit
a5e94bfa9a
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user