]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Always show access level when listing blogs, regardless of canEdit().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 11 Jun 2010 22:06:11 +0000 (22:06 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 11 Jun 2010 22:06:11 +0000 (22:06 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6466 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/views/default/object/blog.php

index 8fb7d3c59f9e657146416ad47902d73021453a05..3b63a661ec7ef96aa88ca0232c92bca1798a7644 100644 (file)
@@ -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 = "<span class='entity_edit'><a href=\"$edit_url\">" . elgg_echo('edit') . '</a></span>';
@@ -65,9 +68,7 @@ if ($blog->canEdit()) {
                $status = "<span class='blog_status'>$status_text</span>";
        }
 
-       $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