Correction protection habilitations

This commit is contained in:
Laurent Destailleur 2006-07-31 23:20:41 +00:00
parent 224cd66b0a
commit b2a3c6acd7
3 changed files with 3 additions and 3 deletions

View File

@ -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"]);

View File

@ -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"];

View File

@ -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');