ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Jan 26, 2009, 3:00:53 PM (11 years ago)
Author:
ebihara
Message:

#3372:added checking permissions to display links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/pc_frontend/modules/communityTopic/templates/listCommunitySuccess.php

    r10384 r10412  
    11<?php use_helper('Date'); ?>
    22
     3<?php if ($community->isCreatableCommunityTopic($sf_user->getMemberId())): ?>
    34<?php
    45$title = 'トピックを作成する';
     
    67include_box('communityTopicList', $title, $body);
    78?>
     9<?php endif; ?>
    810
    911<div class="dparts topicList"><div class="parts">
     
    2224<tr>
    2325<td class="border-left align-right">
    24 <?php
    25 echo link_to('編集', 'communityTopic/edit?id='.$topic->getId());
    26 echo ' | ';
    27 echo link_to('もっと見る'.'('.$topic->countCommunityTopicComments().')', 'communityTopic_show', $topic);
    28 ?></td>
     26<?php if ($topic->isEditable($sf_user->getMemberId())): ?>
     27<?php echo link_to('編集', 'communityTopic/edit?id='.$topic->getId()); ?>
     28<?php endif; ?>
     29 <?php echo link_to('もっと見る'.'('.$topic->countCommunityTopicComments().')', 'communityTopic_show', $topic); ?>
     30</td>
    2931</tr>
    3032<?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.