From da02c0992a7f2363f03cb3dd67a710c02e9bd12c Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 18 Dec 2019 20:57:56 +0200 Subject: [PATCH] Added method to get calculated value from Access class --- system/src/Grav/Common/User/Access.php | 5 +++++ 1 file changed, 5 insertions(+) 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 */