You are here

public function CalculatedGroupPermissionsItemInterface::hasPermission in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/CalculatedGroupPermissionsItemInterface.php \Drupal\group\Access\CalculatedGroupPermissionsItemInterface::hasPermission()

Returns whether this item has a given permission.

This should take ::isAdmin() into account.

Parameters

string $permission: The permission name.

Return value

bool Whether this item has the permission.

1 method overrides CalculatedGroupPermissionsItemInterface::hasPermission()
CalculatedGroupPermissionsItem::hasPermission in src/Access/CalculatedGroupPermissionsItem.php
Returns whether this item has a given permission.

File

src/Access/CalculatedGroupPermissionsItemInterface.php, line 63

Class

CalculatedGroupPermissionsItemInterface
Defines the calculated group permissions item interface.

Namespace

Drupal\group\Access

Code

public function hasPermission($permission);