Deleted POST from admin_permissions

This commit is contained in:
Visman 2017-01-07 18:39:37 +07:00
parent 16d5d06c38
commit 447dc136ca

View file

@ -20,11 +20,13 @@ if ($pun_user['g_id'] != PUN_ADMIN)
// Load the admin_permissions.php language file
require PUN_ROOT.'lang/'.$admin_language.'/admin_permissions.php';
if (isset($_POST['form_sent']))
$request = $container->get('Request');
if ($request->isPost('form_sent'))
{
confirm_referrer('admin_permissions.php');
$form = array_map('intval', $_POST['form']);
$form = array_map('intval', $request->post('form', array()));
foreach ($form as $key => $input)
{