Skip to content

Commit

Permalink
[PHPDoc] Fixed PermissionResolver::canUser examples (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendupuis authored Sep 7, 2023
1 parent 9e8b453 commit ebc5816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contracts/Repository/PermissionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public function hasAccess(string $module, string $function, ?UserReference $user
* Indicates if the current user is allowed to perform an action given by the function on the given
* objects.
*
* Example: canUser( 'content', 'edit', $content, $location );
* Example: canUser( 'content', 'edit', $content, [$location] );
* This will check edit permission on content given the specific location, if skipped if will check on all
* locations.
*
* Example2: canUser( 'section', 'assign', $content, $section );
* Example2: canUser( 'section', 'assign', $content, [$section] );
* Check if user has access to assign $content to $section.
*
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException If any of the arguments are invalid
Expand Down

0 comments on commit ebc5816

Please sign in to comment.