Skip to content
Snippets Groups Projects
Commit 5759523c authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: removed useless tests

parent 336d18ed
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature ...@@ -171,7 +171,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature
// Check write permission from module // Check write permission from module
$createok=1; $createok=1;
if (GETPOST("action") && GETPOST("action") == 'create') if (GETPOST("action") == 'create')
{ {
foreach ($features as $feature) foreach ($features as $feature)
{ {
...@@ -218,7 +218,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature ...@@ -218,7 +218,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature
// Check create user permission // Check create user permission
$createuserok=1; $createuserok=1;
if ( GETPOST("action") && (GETPOST("action") == 'confirm_create_user' && GETPOST("confirm") == 'yes') ) if (GETPOST("action") == 'confirm_create_user' && GETPOST("confirm") == 'yes')
{ {
if (! $user->rights->user->user->creer) $createuserok=0; if (! $user->rights->user->user->creer) $createuserok=0;
...@@ -228,7 +228,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature ...@@ -228,7 +228,7 @@ function restrictedArea($user, $features, $objectid=0, $dbtablename='', $feature
// Check delete permission from module // Check delete permission from module
$deleteok=1; $deleteok=1;
if ( GETPOST("action") && ( (GETPOST("action") == 'confirm_delete' && GETPOST("confirm") && GETPOST("confirm") == 'yes') || GETPOST("action") == 'delete') ) if ((GETPOST("action") == 'confirm_delete' && GETPOST("confirm") == 'yes') || GETPOST("action") == 'delete')
{ {
foreach ($features as $feature) foreach ($features as $feature)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment