You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if I omit the user and username like so: api.user.revoke_roles(obj=item, roles=["Owner"])
I got an
...
Module kup.tfv.db.gfk.einzel, line 161, in action_add
Module <decorator-gen-41>, line 2, in revoke_roles
Module plone.api.validation, line 81, in wrapped
Module <decorator-gen-40>, line 2, in revoke_roles
Module plone.api.validation, line 116, in wrapped
Module plone.api.user, line 414, in revoke_roles
Module <decorator-gen-31>, line 2, in get
Module plone.api.validation, line 116, in wrapped
Module <decorator-gen-30>, line 2, in get
Module plone.api.validation, line 146, in wrapped
plone.api.exc.MissingParameterError: At least one of these parameters must be supplied: userid, username.
Now, question is - is the documentation wrong or is it the implemenation?
The text was updated successfully, but these errors were encountered:
Documentation says:
But if I omit the user and username like so:
api.user.revoke_roles(obj=item, roles=["Owner"])
I got an
Now, question is - is the documentation wrong or is it the implemenation?
The text was updated successfully, but these errors were encountered: