From: <se...@us...> - 2009-01-28 14:35:09
|
Revision: 16448 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=16448&view=rev Author: sept_7 Date: 2009-01-28 14:35:04 +0000 (Wed, 28 Jan 2009) Log Message: ----------- [ENH] searchlib (old one in lib/searchlib.php) : add more permissions checks Modified Paths: -------------- trunk/lib/searchlib.php Modified: trunk/lib/searchlib.php =================================================================== --- trunk/lib/searchlib.php 2009-01-28 14:33:55 UTC (rev 16447) +++ trunk/lib/searchlib.php 2009-01-28 14:35:04 UTC (rev 16448) @@ -361,7 +361,7 @@ 'pageName' => 'c.`name`', 'search' => array('c.`name`', 'c.`description`'), - 'permName' => 'tiki_p_view_image_gallery', + 'permName' => 'tiki_p_view_calendar', 'objectType' => 'calendar', 'objectKey' => '`viewcalitemId`', ); @@ -401,6 +401,9 @@ 'pageName' => $this->concat('f.`title`', "': '", 'q.`question`'), 'search' => array('q.`question`', 'q.`answer`'), 'filter' => 'q.`faqId` = f.`faqId`', + 'permName' => 'tiki_p_view_faqs', + 'objectType' => 'faqs', + 'objectKey' => 'f.`faqId`', ); return $this->_find($search_faqs, $words, $offset, $maxRecords, $fulltext, $filter, $boolean); @@ -417,6 +420,9 @@ 'id' => array('`siteId`'), 'pageName' => 'd.`name`', 'search' => array('d.`name`', 'd.`description`'), + 'permName' => 'tiki_p_view_directory', + 'objectType' => 'directory', + 'objectKey' => 'd.`siteId`', ); global $tiki_p_admin; if ($tiki_p_admin != 'y') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |