Tripal
|
Public Member Functions | |
access (UserInterface $user, AccountInterface $account) | |
Checks that users have access to only their own content given a user account and a permission to check if it's their content. Permission is only granted if it's the users content and they have the passed in permission.
Note: This can only be used on paths with the {user} slug
Drupal\tripal\Access\TripalAccessOwnContentCheck::access | ( | UserInterface | $user, |
AccountInterface | $account | ||
) |
The actual access check.
Drupal\User\UserInterface | $user | The user loaded from the slug in the route. This is the user who owns the content. |
\Drupal\Core\Session\AccountInterface | $account | Run access checks for this account. This is the user requesting access. |