mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Use auth roles
This commit is contained in:
+2
-2
@@ -140,7 +140,7 @@ class XList extends Action
|
||||
}
|
||||
|
||||
$hostname = $dbForProject->getAdapter()->getHostname();
|
||||
$userId = $user->getId() ?? '';
|
||||
$roles = $dbForProject->getAuthorization()->getRoles();
|
||||
$cacheKeyBase = \sprintf(
|
||||
'%s-cache-%s:%s:%s:collection:%s:user:%s:%s',
|
||||
$dbForProject->getCacheName(),
|
||||
@@ -148,7 +148,7 @@ class XList extends Action
|
||||
$dbForProject->getNamespace(),
|
||||
$dbForProject->getTenant(),
|
||||
$collectionId,
|
||||
$userId,
|
||||
\md5(\json_encode($roles)),
|
||||
\md5(\json_encode($serializedQueries))
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user