修正hasRole匹配为equals
This commit is contained in:
parent
07df90f99b
commit
8fdcd576c9
@ -168,7 +168,7 @@ public class PreAuthorizeAspect
|
|||||||
}
|
}
|
||||||
for (String roleKey : userInfo.getRoles())
|
for (String roleKey : userInfo.getRoles())
|
||||||
{
|
{
|
||||||
if (SUPER_ADMIN.contains(roleKey) || roleKey.contains(role))
|
if (SUPER_ADMIN.equals(roleKey) || roleKey.equals(role))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user