aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-05-01 18:29:31 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-05-01 18:29:31 -0700
commitb95ed85ddb4a07014f989c13375e0a9e54fa9826 (patch)
tree9635c6b19cdff9f29d3b6654a91690fe8c301951
parent7303e0b19adae0a3fa5db139e3fafb310dd43485 (diff)
downloadelgg-b95ed85ddb4a07014f989c13375e0a9e54fa9826.tar.gz
elgg-b95ed85ddb4a07014f989c13375e0a9e54fa9826.tar.bz2
Admin users can create sub pages.
-rw-r--r--mod/pages/pages/pages/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/pages/pages/pages/view.php b/mod/pages/pages/pages/view.php
index 5dfb76b55..81477a8d4 100644
--- a/mod/pages/pages/pages/view.php
+++ b/mod/pages/pages/pages/view.php
@@ -32,7 +32,7 @@ elgg_push_breadcrumb($title);
$content = elgg_view_entity($page, array('full_view' => true));
$content .= elgg_view_comments($page);
-if (elgg_get_logged_in_user_guid() == $page->getOwnerGuid()) {
+if (elgg_is_admin_logged_in() || elgg_get_logged_in_user_guid() == $page->getOwnerGuid()) {
$url = "pages/add/$page->guid";
elgg_register_menu_item('title', array(
'name' => 'subpage',