From: <ker...@us...> - 2007-12-09 13:29:33
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21253/lib/wiki-plugins Modified Files: Tag: BRANCH-1-9 wikiplugin_trackerlist.php Log Message: [FIX] Ratings field now shows if selected by someone with tiki_p_admin set. Probably fixes some other issues as well surrounding users with admin privs. Index: wikiplugin_trackerlist.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_trackerlist.php,v retrieving revision 1.7.4.36 retrieving revision 1.7.4.37 diff -u -d -r1.7.4.36 -r1.7.4.37 --- wikiplugin_trackerlist.php 11 Jul 2007 13:31:35 -0000 1.7.4.36 +++ wikiplugin_trackerlist.php 9 Dec 2007 13:29:34 -0000 1.7.4.37 @@ -28,8 +28,10 @@ $perms = $tikilib->get_perm_object($trackerId, 'tracker', false); if ($perms['tiki_p_view_trackers'] != 'y') return; - $smarty->assign_by_ref('perms', $perms); + } else { + $perms['tiki_p_admin'] = 'y'; } + $smarty->assign_by_ref('perms', $perms); global $trklib; require_once("lib/trackers/trackerlib.php"); if (!isset($fields)) { |