You are here

protected property GroupPermission::$roles in Organic groups 8

A list of roles to which this permission can be applied.

For example, the 'subscribe' permission only applies to non-members. If left empty, this permission applies to all roles.

Type: array

File

src/GroupPermission.php, line 23

Class

GroupPermission
A group level permission.

Namespace

Drupal\og

Code

protected $roles = [];