Skip to content

Commit

Permalink
[plugin:tag] fix non-readable pages listing
Browse files Browse the repository at this point in the history
lsx プラグインなどで、タグ別ページ一覧を表示する場合に閲覧権限の無いページがリストアップされてしまう問題を修正。 (thx nonn50)
  • Loading branch information
nao-pon committed Jan 18, 2013
1 parent d78684b commit db796c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xoops_trust_path/modules/xpwiki/plugin/tag.inc.php
Expand Up @@ -375,7 +375,9 @@ function get_taggedpages($tagtok = '', $noenhance = false)
$ret = array();
foreach($pages as $id) {
if ($name = $this->func->get_name_by_pgid($id)) {
$ret[] = $name;
if ($this->func->check_readable_page($name, false, false)) {
$ret[] = $name;
}
}
}
return $ret;
Expand Down

0 comments on commit db796c9

Please sign in to comment.