diff options
-rw-r--r-- | app/index.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php index 182ab1b..a40f8c1 100644 --- a/app/index.php +++ b/app/index.php @@ -74,6 +74,14 @@ function main(array $argv) : void /* view object */ if (table::isGUID($argv[0])) { + /* check permissions */ + if (!$user->canAccess(new obj($argv[0]))) + { + /* TODO - use notice modal instead of an exception */ + throw new Exception("You do not have access permission for the requested object"); + } + + /* setup page */ switch (obj::typeOf($argv[0])) { case "pad": |