public boolean canCreateCodeApps(ProxyContext context) {
        if (context.getApiKeyData().getPerRequestKey() != null || createCodeAppRoles == null) {
            return true;
        }
        List<String> actualUserRoles = context.getUserRoles();
        return !createCodeAppRoles.isEmpty()
                && actualUserRoles.stream().anyMatch(createCodeAppRoles::contains);
    }
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