diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-05-01 18:29:31 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-05-01 18:29:31 -0700 |
commit | b95ed85ddb4a07014f989c13375e0a9e54fa9826 (patch) | |
tree | 9635c6b19cdff9f29d3b6654a91690fe8c301951 /mod | |
parent | 7303e0b19adae0a3fa5db139e3fafb310dd43485 (diff) | |
download | elgg-b95ed85ddb4a07014f989c13375e0a9e54fa9826.tar.gz elgg-b95ed85ddb4a07014f989c13375e0a9e54fa9826.tar.bz2 |
Admin users can create sub pages.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/pages/pages/pages/view.php | 2 |
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', |