Skip to content

frontend: respect admin role when requested#7817

Merged
mksahakyan merged 2 commits into11.0from
issue7808-11.0
Jun 26, 2025
Merged

frontend: respect admin role when requested#7817
mksahakyan merged 2 commits into11.0from
issue7808-11.0

Conversation

@kofemann
Copy link
Member

Motivation:
dCache has two identify admin role: login attribute and RolePrincipal. As HttpServletRequests#isAdmin checks only the RolePrincipal, attribute based roles are ignored.

Modification:
Update HttpServletRequests#isAdmin to check both principal and login attribute. Added frontend test.

Result:
Restore expected behaviour.

Fixes: #7808
Acked-by: Karen Hoyos
Target: master, 11.0, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit 7dc561d)

khys95 and others added 2 commits June 24, 2025 17:14
Reorganization of variables and refactoring

Acked-by: Tigran Mkrtchyan
Target: master
Require-book: no
Require-notes: no
(cherry picked from commit 00e680d)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Motivation:
dCache has two identify admin role: login attribute and RolePrincipal.
As HttpServletRequests#isAdmin checks only the RolePrincipal, attribute
based roles are ignored.

Modification:
Update HttpServletRequests#isAdmin to check both principal and login
attribute. Added frontend test.

Result:
Restore expected behaviour.

Fixes: #7808
Acked-by: Karen Hoyos
Target: master, 11.0, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit 7dc561d)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
@mksahakyan mksahakyan merged commit 9257700 into 11.0 Jun 26, 2025
1 of 3 checks passed
@mksahakyan mksahakyan deleted the issue7808-11.0 branch June 26, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants