Project

General

Profile

Actions

Task #2998

open

Bulk action IdentityRemoveRoleBulkAction has strict permission to run

Added by Roman Kučera about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Bulk operations
Target version:
-
Start date:
11/08/2021
Due date:
% Done:

0%

Estimated time:
Owner:

Description

If you want to run this bulk action in use case, where you are only guarantee for some roles, so you can add/remove only the roles for which you are guarantee. This bulk action will fail.

The cause is this line https://github.com/bcvsolutions/CzechIdMng/blob/e8295b7c98b5fd216535685547c199498c2e2122/Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/bulk/action/impl/IdentityRemoveRoleBulkAction.java#L215

Bulk action is already checking if you have the correct permission for user's contract. So maybe the line can be deleted and everything will be ok. But then tests need to performed.

It would be better to make the permissions similar as for bulk action for adding roles, which works correctly it the use case described above.

No data to display

Actions

Also available in: Atom PDF