Task #2965
closedSome reports ignore permissions of the logged user
100%
Description
The affected reports include at least:
- Identities and their role with complex combination with contracts attributes.
(identity-role-complex-report) - Identities and their assigned roles changes
(identity-role-changes-report) - Get users who start/end contract in specific time range
(users-start-end)
Please check the reports so they evaluate permissions of the logged user.
(E.g. the report "Identities (identity-report)" displays the correct amount of data.)
Version: 2.2.1
Updated by Tomáš Doischer about 3 years ago
The report 'users-start-end' is from extras, so I created corresponding ticket #2976. But I can fix it together.
Updated by Tomáš Doischer about 3 years ago
- Assignee set to Tomáš Doischer
- Target version changed from 2.3.0 to 271
The issue is that 'null' is given as permission in find, it should always be 'IdmBasePermission.READ'. I will fix this.
Updated by Tomáš Doischer about 3 years ago
- Status changed from New to In Progress
The issue is also in Identities and their password changes on a system (identity-password-changes-report).
Updated by Tomáš Doischer about 3 years ago
- % Done changed from 0 to 50
Implemented but not yet fully tested. I added permissions check wherever I could see possible. By the way, this means that to see for example changes is roles, you must have permissions for audit. This makes sense to me but it could be surprising for some.
Updated by Tomáš Doischer about 3 years ago
- % Done changed from 50 to 70
Finished testing the reports.
Right now, to use 'identity-role-changes-report' and 'identity-password-changes-report' you need to be able to read the provisiong archive. To use 'identity-role-changes-report' you need to able to read audit. Further discussion is needed to see if this is the way to go.
Updated by Tomáš Doischer about 3 years ago
- Target version changed from 271 to 2.3.0
Updated by Tomáš Doischer about 3 years ago
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100
Released.
Updated by Tomáš Doischer about 3 years ago
- Status changed from Resolved to Closed