Enforce User Group campaign permissions for lead loading templates based on list_id
git-svn-id: svn://192.168.202.10@2951 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# admin_listloader_fourth_gen.php - version 2.14
|
||||
# (based upon - new_listloader_superL.php script)
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell,Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell,Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# ViciDial web-based lead loader from formatted file
|
||||
#
|
||||
@@ -72,10 +72,11 @@
|
||||
# 170409-1553 - Added IP List validation code
|
||||
# 171001-0908 - Fixed issue #1041
|
||||
# 171204-1517 - Fix for custom field duplicate issue, removed link to old lead loader
|
||||
# 180324-0943 - Enforce User Group campaign permissions for templates based on list_id
|
||||
#
|
||||
|
||||
$version = '2.14-70';
|
||||
$build = '171204-1517';
|
||||
$version = '2.14-71';
|
||||
$build = '180324-0943';
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
@@ -681,7 +682,7 @@ if ( (!$OK_to_process) or ( ($leadfile) and ($file_layout!="standard" && $file_l
|
||||
<td align=right width="20%"><font face="arial, helvetica" size=2><?php echo _QXZ("Custom Layout to Use"); ?>: </font></td>
|
||||
<td align=left><select name="template_id" id="template_id">
|
||||
<?php
|
||||
$template_stmt="SELECT template_id, template_name from vicidial_custom_leadloader_templates order by template_id asc";
|
||||
$template_stmt="SELECT template_id, template_name FROM vicidial_custom_leadloader_templates WHERE list_id IN (SELECT list_id FROM vicidial_lists $whereLOGallowed_campaignsSQL) ORDER BY template_id asc;";
|
||||
$template_rslt=mysql_to_mysqli($template_stmt, $link);
|
||||
if (mysqli_num_rows($template_rslt)>0) {
|
||||
echo "<option value='' selected>--"._QXZ("Select custom template")."--</option>";
|
||||
|
||||
Reference in New Issue
Block a user