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
Within the InvenioRDM Administration panel's User Management section, an admin has the ability to block their own account. This action immediately restricts access to the system for the admin, with no straightforward method available to revert this action from the UI. The only recourse is to contact a developer to manually restore access.
Steps to Reproduce
Navigate to the Administration panel, under User Management.
For your own admin user, click on the "Block" option.
Observe that you are immediately logged out and blocked from accessing the system.
Expected behavior
Admin accounts should not have the option to block themselves.
Screenshots (if applicable)
Additional context
The text was updated successfully, but these errors were encountered:
Samk13
changed the title
Administration: Admins Can Inadvertently Block Themselves Out.
User Management: Admins Can Inadvertently Block Themselves Out.
Apr 10, 2024
Samk13
added a commit
to Samk13/invenio-users-resources
that referenced
this issue
Apr 26, 2024
* The problem is that an admin could block his own
account. With this change it is possible to prevent
the admin from doing that.
* Implement prevent_self_action decorator
* Prevent self-block, deactivate, impersonate
* Update tests for self-action prevention
* closes <inveniosoftware/invenio-administration#203>
Samk13
added a commit
to Samk13/invenio-users-resources
that referenced
this issue
Apr 30, 2024
* The problem is that an admin could block his own
account. With this change it is possible to prevent
the admin from doing that.
* Prevent self-action for: block, deactivate, impersonate, restore, activate and approve.
* Update tests for self-action prevention
* closes <inveniosoftware/invenio-administration#203>
Package version (if known): V12 latest
Describe the bug
Within the InvenioRDM Administration panel's User Management section, an admin has the ability to block their own account. This action immediately restricts access to the system for the admin, with no straightforward method available to revert this action from the UI. The only recourse is to contact a developer to manually restore access.
Steps to Reproduce
Expected behavior
Admin accounts should not have the option to block themselves.
Screenshots (if applicable)
Additional context
The text was updated successfully, but these errors were encountered: