From 365e4fb08bbc5449d32e25e09face877afee4366 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 11 Jun 2010 22:06:11 +0000 Subject: Always show access level when listing blogs, regardless of canEdit(). git-svn-id: http://code.elgg.org/elgg/trunk@6466 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/object/blog.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mod/blog/views/default/object') diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 8fb7d3c59..3b63a661e 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -47,7 +47,10 @@ if ($blog->comments_on != 'Off') { } // links to delete or edit. -$edit = ''; + +// access is always shown. +$edit = elgg_view('output/access', array('entity' => $vars['entity'])); + if ($blog->canEdit()) { $edit_url = "{$vars['url']}pg/blog/{$owner->username}/edit/{$blog->getGUID()}/"; $edit_link = "" . elgg_echo('edit') . ''; @@ -65,9 +68,7 @@ if ($blog->canEdit()) { $status = "$status_text"; } - $access = elgg_view('output/access', array('entity' => $vars['entity'])); - - $edit = "$access $status $edit_link $delete_link"; + $edit .= "$status $edit_link $delete_link"; } // include a view for plugins to extend -- cgit v1.2.3