Skip to content

Commit

Permalink
Merge commit 'refs/pull/487/head' of github.com:alchemy-fr/phraseanet…
Browse files Browse the repository at this point in the history
…-services into w2445
  • Loading branch information
nmaillat committed Nov 15, 2024
2 parents 99d3d5c + c35f32e commit 990db79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function configureFields(string $pageName): iterable
yield Field::new('facetEnabled')
->hideOnIndex();
yield ArrayField::new('fallback')
->hideOnIndex();
->onlyOnDetail();
yield TextField::new('key')
->hideOnIndex();
yield IntegerField::new('position');
Expand Down
5 changes: 1 addition & 4 deletions databox/api/src/Security/Voter/AssetVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ protected function voteOnAttribute(string $attribute, $subject, TokenInterface $
return $isOwner()
|| $this->security->isGranted(self::SCOPE_PREFIX.'DELETE')
|| $this->hasAcl(PermissionInterface::DELETE, $subject, $token)
|| (
null !== $subject->getReferenceCollection()
&& $this->hasAcl(PermissionInterface::DELETE, $subject->getReferenceCollection(), $token)
);
|| $this->voteOnContainer($subject, AbstractVoter::DELETE);
case self::EDIT_PERMISSIONS:
return $isOwner()
|| $this->security->isGranted(self::SCOPE_PREFIX.'OWNER')
Expand Down

0 comments on commit 990db79

Please sign in to comment.