mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-08 13:27:46 +00:00
若依 2.2
This commit is contained in:
@@ -79,7 +79,7 @@ public class PreAuthorizeAspect
|
||||
}
|
||||
throw new PreAuthorizeException();
|
||||
}
|
||||
else if (StringUtils.isEmpty(annotation.lacksRole()))
|
||||
else if (!StringUtils.isEmpty(annotation.lacksRole()))
|
||||
{
|
||||
if (lacksRole(annotation.lacksRole()))
|
||||
{
|
||||
@@ -87,7 +87,7 @@ public class PreAuthorizeAspect
|
||||
}
|
||||
throw new PreAuthorizeException();
|
||||
}
|
||||
else if (StringUtils.isEmpty(annotation.hasAnyRoles()))
|
||||
else if (!StringUtils.isEmpty(annotation.hasAnyRoles()))
|
||||
{
|
||||
if (hasAnyRoles(annotation.hasAnyRoles()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user