summaryrefslogtreecommitdiff
path: root/src/Controllers
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-14 02:17:27 +0100
committermsquare <msquare@notrademark.de>2018-12-02 12:53:31 +0100
commitc9d7e88cc70b6ad124c28be479a6e64c4b174ea6 (patch)
treeee4a37c27b05c1ef4ccc6a01cc088b510f5084ef /src/Controllers
parent55beca95cd8d6ecfe610daea304c8374a10485af (diff)
Implemented controller permissions
Diffstat (limited to 'src/Controllers')
-rw-r--r--src/Controllers/BaseController.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Controllers/BaseController.php b/src/Controllers/BaseController.php
index 6a27a066..cbc00931 100644
--- a/src/Controllers/BaseController.php
+++ b/src/Controllers/BaseController.php
@@ -4,5 +4,16 @@ namespace Engelsystem\Controllers;
abstract class BaseController
{
+ /** @var string[]|string[][] A list of Permissions required to access the controller or certain pages */
+ protected $permissions = [];
+ /**
+ * Returns the list of permissions
+ *
+ * @return string[]|string[][]
+ */
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
}