mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Use auth roles
This commit is contained in:
parent
9dd707cd1b
commit
aeaa184aec
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue