RuoYi
2020-09-30 f64f806a4242b070d380927faaae743111b9fa89
ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/aspect/PreAuthorizeAspect.java
@@ -79,7 +79,7 @@
            }
            throw new PreAuthorizeException();
        }
        else if (StringUtils.isEmpty(annotation.lacksRole()))
        else if (!StringUtils.isEmpty(annotation.lacksRole()))
        {
            if (lacksRole(annotation.lacksRole()))
            {
@@ -87,7 +87,7 @@
            }
            throw new PreAuthorizeException();
        }
        else if (StringUtils.isEmpty(annotation.hasAnyRoles()))
        else if (!StringUtils.isEmpty(annotation.hasAnyRoles()))
        {
            if (hasAnyRoles(annotation.hasAnyRoles()))
            {