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

Changeset 2944


Ignore:
Timestamp:
May 17, 2007, 4:34:36 PM (12 years ago)
Author:
ebihara
Message:

#727:他人の非公開TodoをTodo投稿履歴に表示していたバグの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.6.x/webapp_biz/modules/biz/lib/mysql_functions.php

    r2940 r2944  
    765765
    766766    if ($limit) {
    767         $list = db_get_all_limit($sql, 0, intval($limit), $params);
     767        $tmp = db_get_all_limit($sql, 0, intval($limit), $params);
    768768    } else {
    769         $list = db_get_all($sql, $params);
    770     }
    771 
    772     foreach ($list as $key => $value) {
     769        $tmp = db_get_all($sql, $params);
     770    }
     771
     772    $list = array();
     773    foreach ($tmp as $key => $value) {
     774        if (!biz_isPermissionTodo($id, $value['biz_todo_id'])) {
     775            continue;
     776        }
     777        $list[$key] = $value;
    773778        $sql = 'SELECT nickname FROM c_member WHERE c_member_id = ?';
    774779        $params = array(
Note: See TracChangeset for help on using the changeset viewer.