You are here

public function OgMembershipInterface::hasPermission in Organic groups 8

Checks if the user has a permission inside the group.

Parameters

string $permission: The name of the permission.

Return value

bool TRUE if the user has permission.

1 method overrides OgMembershipInterface::hasPermission()
OgMembership::hasPermission in src/Entity/OgMembership.php
Checks if the user has a permission inside the group.

File

src/OgMembershipInterface.php, line 259

Class

OgMembershipInterface
Provides an interface for OG memberships.

Namespace

Drupal\og

Code

public function hasPermission(string $permission) : bool;