public function RoleAccessControlRelationsProvider::getAuthorizedEntityIds in Role Access Control 8.2
File
- modules/
rac_relations/ src/ Plugin/ adva/ AccessProvider/ RoleAccessControlRelationsProvider.php, line 39
Class
- RoleAccessControlRelationsProvider
- Role Access Provider for Advanced Access.
Namespace
Drupal\rac_relations\Plugin\adva\AccessProviderCode
public function getAuthorizedEntityIds($operation, AccountInterface $account) {
$userRoles = _rac_get_account_roles('update', $account);
// Check the user update permissions, and then return the authorized ids.
return array_map(function ($role) {
return $role
->id();
}, $userRoles);
}