You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2021/06/03 14:54:50 UTC
[Bug 65351] Regression in UserDatabaseRealm: Groups are no longer
considered in hasRole
https://bz.apache.org/bugzilla/show_bug.cgi?id=65351
--- Comment #1 from cklein05 <c....@datagis.com> ---
Provided method was not complete, in order to test for all/effective roles, of
course (my bad). Testing explicitly assigned roles is still required so, this
should be the correct version:
public boolean isInEffectiveRole(Role role) {
if (isInRole(role)) {
return true;
}
synchronized (groups) {
for (Group group : groups) {
if (group.isInRole(role)) {
return true;
}
}
}
return false;
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org