This commit is contained in:
Regis Houssin 2006-03-11 15:10:38 +00:00
parent 4844a7d7eb
commit b59f853b7c

View File

@ -60,7 +60,8 @@ if (!$user->rights->commercial->client->voir && $contactid && !$user->societe_id
}
}
if ($user->rights->societe->contact->creer)
{
if ($_GET["action"] == 'create_user' && $user->admin)
{
// Recuperation contact actuel
@ -73,6 +74,7 @@ if ($_GET["action"] == 'create_user' && $user->admin)
$nuser->prenom = $contact->firstname;
$nuser->create_from_contact($contact);
}
}
if ($user->rights->societe->contact->creer)
{
@ -118,10 +120,6 @@ if ($user->rights->societe->contact->creer)
}
}
}
else
{
accessforbidden();
}
if ($user->rights->societe->contact->supprimer)
{
@ -138,10 +136,6 @@ if ($user->rights->societe->contact->supprimer)
exit;
}
}
else
{
accessforbidden();
}
if ($user->rights->societe->contact->creer)
{
@ -180,10 +174,6 @@ if ($user->rights->societe->contact->creer)
}
}
}
else
{
accessforbidden();
}
/*
@ -248,10 +238,6 @@ if ($user->rights->societe->contact->supprimer)
print '<br>';
}
}
else
{
accessforbidden();
}
if ($_GET["action"] == 'create')
{