Skip to content
Snippets Groups Projects
Commit 0beee2a3 authored by Mergen Imeev's avatar Mergen Imeev Committed by Alexander Turenko
Browse files

box: support _origin in grant() and revoke()

This patch adds a new option '_origin' to the 'box.schema.user.grant()',
'box.schema.role.grant()', 'box.schema.user.revoke()' and
'box.schema.role.revoke()' functions. This is a private option that
allows to differentiate privileges based on their origin. If this option
is not provided an empty string is used by default.

Privileges that were granted using 'grant()' can be revoked using
'revoke()' with the same '_origin'.

The motivation for this change is to avoid actually revoking a privilege
granted by two actors if one actor revokes it.

Needed for #9643

NO_DOC=internal
NO_CHANGELOG=internal
parent 0ae908cd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment