public Map<ResourceDescriptor, Set<ResourceAccessType>> lookupPermissions(
            Set<ResourceDescriptor> resources, ProxyContext context) {
        return lookupPermissions(resources, context, ResourceAccessType.ALL);
    }
The method returns permissions associated with provided resources.
Check sequence:
<ul>
  <li>Own resources</li>
  <li>Admin access</li>
  <li>Auto shared</li>
  <li>App resource</li>
  <li>Shared access</li>
  <li>Public access</li>
  <li>Review resource</li>
</ul>

@param resources - resources to retrieve permissions for
@param context - proxy context
@return User permissions to all requested resources
server/src/main/java/com/epam/aidial/core/server/security/AccessService.java