The method getPermissions() will only return the first permission of every role due to the way it is written:
$permissions = (array) key($this->permissions);Role::79
My simple suggestion would be to fix this like this:
$permissions = array_keys($this->permissions);
The method
getPermissions()
will only return the first permission of every role due to the way it is written:$permissions = (array) key($this->permissions);
Role::79
My simple suggestion would be to fix this like this:
$permissions = array_keys($this->permissions);
Update: I've added a PR https://github.com/zendframework/zend-permissions-rbac/pull/39