mirror of
https://github.com/getgrav/grav.git
synced 2026-02-19 04:58:21 +01:00
Added method to get calculated value from Access class
This commit is contained in:
@@ -62,6 +62,11 @@ class Access implements \JsonSerializable, \IteratorAggregate, \Countable
|
||||
return Utils::arrayUnflattenDotNotation($this->acl);
|
||||
}
|
||||
|
||||
public function get(string $action)
|
||||
{
|
||||
return $this->acl[$action] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Traversable
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user