diff --git a/system/src/Grav/Common/User/Access.php b/system/src/Grav/Common/User/Access.php index d3c5687e0..61afa7e55 100644 --- a/system/src/Grav/Common/User/Access.php +++ b/system/src/Grav/Common/User/Access.php @@ -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 */