Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission problems with password field #1480

Open
dswd opened this issue Jul 14, 2017 · 0 comments
Open

Permission problems with password field #1480

dswd opened this issue Jul 14, 2017 · 0 comments

Comments

@dswd
Copy link
Contributor

dswd commented Jul 14, 2017

  • 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant