diff options
-rw-r--r-- | core/helpers/core_block.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 3956528d..f6718e53 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -24,8 +24,12 @@ class core_block_Core { } public static function page_bottom($theme) { - // @todo: guard this with permissions - if (Session::instance()->get("user", false)) { + if (Session::instance()->get("profiler", false)) { + $profiler = new Profiler(); + $profiler->render(); + } + + if (access::can("edit", $theme->item()->id)) { return new View("in_place_edit.html"); } } |