Skip to content

Commit

Permalink
Fix create authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Nov 21, 2024
1 parent c2add51 commit 41ece8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Http/Controllers/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ public function create(string $parentUri, string $entityKey)
{
$entity = $this->entityManager->entityFor($entityKey);

sharp_check_ability(
$entity->hasShow() ? 'create' : 'view',
$entityKey,
);
sharp_check_ability('create', $entityKey);

$form = $entity->getFormOrFail(sharp_normalize_entity_key($entityKey)[1]);

Expand Down

0 comments on commit 41ece8f

Please sign in to comment.