Skip to content
Snippets Groups Projects

Issue #3515754 by NathLL : Change method to aggregate AccessRestult

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -207,7 +207,7 @@ public function checkAccess(AccountInterface $account, ?MediaLibraryState $state
// Delegate any further access checking to the opener service nominated by
// the media library state.
return $this->openerResolver->get($state)->checkAccess($state, $account)
->andIf($can_view_media);
->orIf($can_view_media);
}
/**
Loading