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

Correction protection habilitations

parent 224cd66b
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="nom";
if ($_GET["action"] == 'attribute_prefix')
if ($_GET["action"] == 'attribute_prefix' && $user->rights->societe->creer)
{
$societe = new Societe($db, $_GET["socid"]);
$societe->attribute_prefix($db, $_GET["socid"]);
......
......@@ -93,7 +93,7 @@ if ($_POST["getsuppliercode"])
}
if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"])
&& ($_POST["action"] == 'add' || $_POST["action"] == 'update'))
&& ($_POST["action"] == 'add' || $_POST["action"] == 'update') && $user->rights->societe->creer)
{
$soc->nom = $_POST["nom"];
$soc->adresse = $_POST["adresse"];
......
......@@ -119,7 +119,7 @@ if ($socidp > 0)
print "<input type=\"hidden\" name=\"socid\" value=\"".$societe->id."\">";
// diteur wysiwyg
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_MAILING)
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_SOCIETE)
{
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
$doleditor=new DolEditor('note',$societe->note,280,'dolibarr_notes');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment