core/src/main/java/org/apache/shiro/authz/aop/RoleAnnotationHandler.java [70:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            boolean hasAtLeastOneRole = false;
            for (String role : roles) {
                if (getSubject().hasRole(role)) {
                    hasAtLeastOneRole = true;
                }
            }
            // Cause the exception if none of the role match, note that the exception message will be a bit misleading
            if (!hasAtLeastOneRole) {
                getSubject().checkRole(roles[0]);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core/src/main/java/org/apache/shiro/authz/aop/RolesAllowedAnnotationHandler.java [67:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        boolean hasAtLeastOneRole = false;
        for (String role : roles) {
            if (getSubject().hasRole(role)) {
                hasAtLeastOneRole = true;
            }
        }
        // Cause the exception if none of the role match, note that the exception message will be a bit misleading
        if (!hasAtLeastOneRole) {
            getSubject().checkRole(roles[0]);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



