Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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