From: <sy...@us...> - 2007-02-13 14:26:16
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12599 Modified Files: tiki-batch_upload_files.php Log Message: [FIX]fgal: tiki_p_create_file_galleries could be redefined for a gal+ use tiki_p_admin_FILE_GALLERIES Index: tiki-batch_upload_files.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-batch_upload_files.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- tiki-batch_upload_files.php 12 Feb 2007 20:39:45 -0000 1.11 +++ tiki-batch_upload_files.php 13 Feb 2007 14:26:11 -0000 1.12 @@ -295,9 +295,7 @@ if (isset($_REQUEST["galleryId"])) { $smarty->assign_by_ref('galleryId', $_REQUEST["galleryId"]); $smarty->assign('permAddGallery', 'n'); - if ($userlib->object_has_permission($user, $_REQUEST["galleryId"], 'image gallery', 'tiki_p_create_file_galleries')) { - $smarty->assign('permAddGallery', 'y'); - } elseif (($tiki_p_admin_galleries == 'y') || ($tiki_p_create_galleries == 'y')) { + if ($tiki_p_admin_file_galleries == 'y' || $userlib->object_has_permission($user, $_REQUEST["galleryId"], 'image gallery', 'tiki_p_create_file_galleries')) { $smarty->assign('permAddGallery', 'y'); } } else { |