Show
Ignore:
Timestamp:
08/31/10 10:10:53 (21 months ago)
Author:
gnum
Message:

Fixes #97, vCard can be downloaded by any facilitator also made changes for OPML files, those can be downloaded by any user.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/views/default/edufeedr/educourse_participants.php

    r142 r150  
    2929                        $body .= '<label>' . elgg_echo('edufeedr:label:course:downloads') . '</label>'; 
    3030                        $body .= '<ul>'; 
     31                        // vCard is only available for course owner and facilitators 
     32                        if ($vars['entity']->canEdit() && edufeedrCanEditEducourse($vars['entity'])) { 
    3133            /*translation:vCard file with Address Book contacts*/ 
    32             $body .= '<li><a href="' . $vars['url'] . 'action/edufeedr/download_educourse_vcard?educourse=' . $vars['entity']->getGUID() . '&__elgg_ts='. $ts . '&__elgg_token=' . $token .'">' . elgg_echo('edufeedr:action:download:vcard:file') . '</a></li>'; 
     34                                $body .= '<li><a href="' . $vars['url'] . 'action/edufeedr/download_educourse_vcard?educourse=' . $vars['entity']->getGUID() . '&__elgg_ts='. $ts . '&__elgg_token=' . $token .'">' . elgg_echo('edufeedr:action:download:vcard:file') . '</a></li>'; 
     35                        } 
    3336            /*translation:OPML file with RSS feeds for blog posts*/ 
    3437            $body .= '<li><a href="' . $vars['url'] . 'action/edufeedr/download_educourse_opml?educourse=' . $vars['entity']->getGUID() . '&type=posts&__elgg_ts=' . $ts . '&__elgg_token=' . $token . '">' . elgg_echo('edufeedr:action:download:posts:opml:file') . '</a></li>';