fix the unfixeble

This commit is contained in:
m
2026-09-11 10:49:12 +02:00
parent 76ed3aa66b
commit 2d9be3f489
13 changed files with 869 additions and 51 deletions
@@ -150,6 +150,9 @@ export async function canAccess(
const exactCache = await getResourcePermission(resourceId, resourceType);
if (exactCache) {
if (exactCache.ownerId === deviceUserId) {
return { allowed: true, access: 'owner', source: 'owner', stale: false, expiresAt: null };
}
if (exactCache.expiresAt != null && exactCache.expiresAt < now) {
return {
allowed: false,