Skip to content

Commit d0e2ecc

Browse files
authored
Allowing normal user to change proxy template, /web/edit/
1 parent 9d4606b commit d0e2ecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/edit/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@
230230
$restart_proxy = 'yes';
231231
}
232232

233-
// Change proxy template / Update extension list (admin only)
234-
if ((!empty($_SESSION['PROXY_SYSTEM'])) && (!empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg'])) && ($_SESSION['user'] == 'admin')) {
233+
// Change proxy template / Update extension list
234+
if ((!empty($_SESSION['PROXY_SYSTEM'])) && (!empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg'])) ) {
235235
$ext = preg_replace("/\n/", " ", $_POST['v_proxy_ext']);
236236
$ext = preg_replace("/,/", " ", $ext);
237237
$ext = preg_replace('/\s+/', ' ',$ext);

0 commit comments

Comments
 (0)