Skip to content

Permission problems with password field #1480

@dswd

Description

@dswd
  • Users cannot change their own password
  • Admins cannot change or reset users passwords
Traceback (most recent call last):
  File "/code/service/tomato/lib/rpc/xmlrpc.py", line 256, in execute
    res = func(*args, **kwargs)
  File "/code/service/tomato/api/account.py", line 127, in account_modify
    ignore_key_on_unauthorized, ignore_flag_on_unauthorized)
  File "/code/service/tomato/authorization/permission_checker.py", line 226, in reduce_keys_to_allowed
    auth_fail("You are not allowed to set this key.", data={"key": k})
  File "/code/service/tomato/authorization/permission_checker.py", line 17, in auth_fail
    auth_check(False, message, data)
  File "/code/service/tomato/authorization/permission_checker.py", line 14, in auth_check
    UserError.check(condition, code=UserError.DENIED, message=message, data=data)
  File "/code/service/tomato/lib/error.py", line 147, in check
    raise exception
UserError: unknown user error [denied]: You are not allowed to set this key.
	key='password'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions