public boolean hasPublicAccess(Set<ResourceDescriptor> resources, ProxyContext context) {
        return resources.stream().allMatch(ResourceDescriptor::isPublic) && hasAdminAccess(context)
                || resources.equals(ruleService.getAllowedPublicResources(context, resources));
    }
Checks if USER has public access to the provided resources.
This method also checks admin privileges.

@param resources - public resources
@param context - context
@return true - if all provided resources are public and user has permissions to all of them, otherwise - false
server/src/main/java/com/epam/aidial/core/server/security/AccessService.java