private Map<ResourceDescriptor, Set<ResourceAccessType>> getAdminAccess(
            Set<ResourceDescriptor> resources, ProxyContext context) {
        if (hasAdminAccess(context)) {
            return resources.stream()
                    .collect(Collectors.toUnmodifiableMap(Function.identity(), resource -> ResourceAccessType.ALL));
        }

        return Map.of();
    }
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