public function ManageByGroupManagersOnlyAccess::access in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 8.5 modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 8.6 modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 8.7 modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 8.8 modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 10.3.x modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 10.0.x modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
- 10.2.x modules/social_features/social_group/src/Plugin/views/access/ManageByGroupManagersOnlyAccess.php \Drupal\social_group\Plugin\views\access\ManageByGroupManagersOnlyAccess::access()
Determine if the current user has access or not.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.
Return value
bool Returns whether the user has access to the view.
Overrides AccessPluginBase::access
File
- modules/
social_features/ social_group/ src/ Plugin/ views/ access/ ManageByGroupManagersOnlyAccess.php, line 25
Class
- ManageByGroupManagersOnlyAccess
- Manage by Group Managers only access plugin.
Namespace
Drupal\social_group\Plugin\views\accessCode
public function access(AccountInterface $account) {
// Allow here for at least LU, real access check in alterRouteDefinition().
return $account
->isAuthenticated();
}