-
Bug
-
Resolution: Done
-
Major
-
None
-
3.6.4.Final
-
None
-
None
In [ org.jboss.hal.config.User.java ] , isAdministrator() and isSuperuser() methods contains the loop for checking 'ADMINISTRATOR' and 'SUPER_USER' . So, we can avoid the loop by using the collection contains() method in the code.
-----------------------------
for (Role role : roles) {
if (ADMINISTRATOR.equals(role))
{ return true; }}
--------------------------------------
Replacing the old code with the given line of code:
--------------------------------------
if(roles.contains(ADMINISTRATOR)) { return true; } else { return false; }
--------------
- is incorporated by
-
WFLY-17375 Upgrade HAL to 3.6.5.Final
- Closed
-
WFLY-17376 Upgrade HAL to 3.6.5.Final (WildFly 27.0.1.Final)
- Closed