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:
commit
6875e586cb
@ -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