summaryrefslogtreecommitdiff
path: root/controllers/controllers.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2018-07-20 17:59:18 -0500
committerAaron Parecki <aaron@parecki.com>2018-07-20 17:59:18 -0500
commitb749bc6c124a02a6949dc67ea703d880e1acd2ac (patch)
treee6695ac1a3a2cb59977d77434179908295e93029 /controllers/controllers.php
parent33796f7bd5def85a5753cc3b4430769379b60475 (diff)
disable post type buttons if the server doesn't support them
Diffstat (limited to 'controllers/controllers.php')
-rw-r--r--controllers/controllers.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controllers/controllers.php b/controllers/controllers.php
index 9a49305..237c4bb 100644
--- a/controllers/controllers.php
+++ b/controllers/controllers.php
@@ -47,7 +47,8 @@ $app->get('/dashboard', function() use($app) {
if($user=require_login($app)) {
render('dashboard', array(
'title' => 'Dashboard',
- 'authorizing' => false
+ 'authorizing' => false,
+ 'user' => $user,
));
}
});