Skip to content

Commit

Permalink
Issue CollaboraOnline#49: Remove redundant ->cachePerPermission() whe…
Browse files Browse the repository at this point in the history
…n ->cachePerUser() is already present.
  • Loading branch information
donquixote committed Nov 20, 2024
1 parent 35d11b3 commit bf2c338
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions collabora_online.module
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ function collabora_online_media_access(MediaInterface $media, string $operation,
->setReason("The user has the '$preview_own_permission' permission, but is not the owner of the media item.");
}
return $access_result
->cachePerPermissions()
->cachePerUser()
->addCacheableDependency($media);

Expand All @@ -170,7 +169,6 @@ function collabora_online_media_access(MediaInterface $media, string $operation,
$access_result = AccessResult::allowed();
}
return $access_result
->cachePerPermissions()
->cachePerUser()
->addCacheableDependency($media);

Expand Down

0 comments on commit bf2c338

Please sign in to comment.