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

Changeset 4463


Ignore:
Timestamp:
Oct 20, 2007, 3:13:51 AM (12 years ago)
Author:
ebihara
Message:

#1390:PC版で副管理人がトピックコメントを削除できなかったのを修正

Location:
OpenPNE/branches/stable-2.10.x/webapp/modules/pc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/page/c_event_write_delete_confirm.php

    r1856 r4463  
    2424            handle_kengen_error();
    2525        }
    26         if ($c_commu_topic_comment['c_member_id'] != $u && $c_commu['c_member_id_admin'] != $u) {
     26        $status = db_common_commu_status($u, $c_commu_id);
     27        if (!$status['is_commu_admin']
     28            && $c_commu_topic_comment['c_member_id'] != $u) {
    2729            handle_kengen_error();
    2830        }
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/page/c_topic_write_delete_confirm.php

    r1856 r4463  
    2121
    2222        //--- 権限チェック
    23         if ($c_commu_topic_comment['c_member_id']!=$u&&$c_commu['c_member_id_admin']!=$u) {
     23        $status = db_common_commu_status($u, $c_commu_id);
     24        if (!$status['is_commu_admin']
     25            && $c_commu_topic_comment['c_member_id'] != $u) {
    2426            handle_kengen_error();
    2527        }
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/templates/c_event_detail.tpl

    r4310 r4463  
    604604<span class="c_08 b_b">
    605605({$item.number}):</span>&nbsp;<a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})">({$item.nickname})</a>&nbsp;
    606 ({if $c_member_id == $item.c_member_id || $c_member_id == $c_commu.c_member_id_admin})
     606({if $c_member_id == $item.c_member_id || $c_member_id == $c_commu.c_member_id_admin || $c_member_id == $c_commu.c_member_id_sub_admin})
    607607<a href="({t_url m=pc a=page_c_event_write_delete_confirm})&amp;target_c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})">削除</a>
    608608({/if})
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/templates/c_topic_detail.tpl

    r4321 r4463  
    274274
    275275<span class="b_b">({$item.number})</span>:&nbsp;<a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})">({$item.nickname})</a>&nbsp;
    276 ({if $c_member_id == $item.c_member_id || $c_member_id == $c_commu.c_member_id_admin})
     276({if $c_member_id == $item.c_member_id || $c_member_id == $c_commu.c_member_id_admin || $c_member_id == $c_commu.c_member_id_sub_admin})
    277277<a href="({t_url m=pc a=page_c_topic_write_delete_confirm})&amp;target_c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})">削除</a><br>
    278278({/if})
Note: See TracChangeset for help on using the changeset viewer.