Skip to content

Commit

Permalink
Merge pull request #118 from riceri/2.1.x
Browse files Browse the repository at this point in the history
Updated example in quick-start.md
  • Loading branch information
visto9259 authored Jan 4, 2025
2 parents 226cd1e + 00623b0 commit 2110f50
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,12 @@ return [
],
'assertion_map' => [
'edit' => function ($permission, IdentityInterface $identity = null, $resource = null) {
if ($resource->getOwnerId() === $identity->getId() {
return true;
} else {
return false;
}
if ($resource->getOwnerId() === $identity->getId()) {
return true;
} else {
return false;
}
},
],
],
];
Expand Down

0 comments on commit 2110f50

Please sign in to comment.