Navigation Menu

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

No exception on revoking role without admin-option [CORE882] #1275

Open
firebird-automations opened this issue Jul 29, 2006 · 2 comments
Open

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Michael Trowe (bubble76)

Assigned to: Claudio Valderrama C. (robocop)

If you try to grant a role to a user and you have no admin-option for this role, an exception is raised.
If you try to revoke a role from a user without admin-options for this role, nothing happens - and I think the same exception must be raised.

Example:

CREATE ROLE ROLE_1;
CREATE ROLE ROLE_2;

/* Privileges of users */
GRANT ROLE_1 TO USER_1 WITH ADMIN OPTION;
GRANT ROLE_2 TO USER_1;

**** Login as USER_1 ****
GRANT ROLE_1 TO USER_2
REVOKE ROLE_1 FROM USER_2

GRANT ROLE2 TO USER_2
** The exception raised

**** Login as SYSDBA ****
GRANT ROLE_2 TO USER_2;

**** Login as USER_1 ****
REVOKE ROLE_2 FROM USER_2
** Nothing happens

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

priority: Major [ 3 ] => Minor [ 4 ]

assignee: Claudio Valderrama C. [ robocop ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11107 ] => Firebird [ 14688 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant