From 00623b0deff72e1b981626a6ff2b72bb835cd98a Mon Sep 17 00:00:00 2001 From: Rickard Eriksson Date: Fri, 3 Jan 2025 23:59:21 +0100 Subject: [PATCH] Updated example in quick-start.md --- docs/docs/quick-start.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/docs/quick-start.md b/docs/docs/quick-start.md index 3789ebc..0aab369 100644 --- a/docs/docs/quick-start.md +++ b/docs/docs/quick-start.md @@ -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; + } + }, ], ], ];