forked from shaba/openuds
Added boolean True as valid force value
This commit is contained in:
parent
4c453d2b1f
commit
afbc75bff0
@ -138,7 +138,7 @@ class Tickets(Handler):
|
||||
if 'username' not in self._params or 'groups' not in self._params:
|
||||
raise RequestError('Invalid parameters')
|
||||
|
||||
force: bool = self._params.get('force', '0') in ('1', 'true', 'True')
|
||||
force: bool = self._params.get('force', '0') in ('1', 'true', 'True', True)
|
||||
|
||||
userIp: typing.Optional[str] = self._params.get('userIp', None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user