aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/videolist')
-rw-r--r--views/default/videolist/group_video_header.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/default/videolist/group_video_header.php b/views/default/videolist/group_video_header.php
index d3f59b773..dd12d1d96 100644
--- a/views/default/videolist/group_video_header.php
+++ b/views/default/videolist/group_video_header.php
@@ -6,7 +6,8 @@
$user = page_owner_entity();
$user_name = elgg_view_title($user->name . "'s " . elgg_echo('videos'));
$url = $CONFIG->wwwroot . "pg/videolist/browse/". $user->username . "/";
-if(isloggedin())
+//if the user is a memebr of the group, show find button
+if($user->isMember(get_loggedin_user()))
$upload_link = "<a href=\"{$url}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
else
$upload_link = '';