diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 041ea729332..23e15998caf 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -140,7 +140,7 @@ class Form } $s.=''; } - return $s; + return $s; } /** diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang index 205c756a54f..260eceb2a26 100755 --- a/htdocs/langs/en_US/users.lang +++ b/htdocs/langs/en_US/users.lang @@ -83,3 +83,4 @@ DomainUser=Domain user %s Reactivate=Reactivate CreateInternalUserDesc=This form allows you to creat an user internal to your company/fundation. To creat an external user (customer, supplier, ...), use button 'Create Dolibarr user' from third party's contact card. InternalExternalDesc=An internal user is a user that is part of your company/fundation.
An external user is a customer, supplier or other.

In both cases, permissions defines rights on Dolibarr, also external user can have a different menu manager than internal user (See Home - Setup - Display) +PermissionInheritedFromAGroup=Permission granted because ineherited from one of a user's group. diff --git a/htdocs/langs/fr_FR/users.lang b/htdocs/langs/fr_FR/users.lang index 5582846e696..9ccea5d30e4 100755 --- a/htdocs/langs/fr_FR/users.lang +++ b/htdocs/langs/fr_FR/users.lang @@ -83,3 +83,4 @@ DomainUser=Utilisateur du domaine %s Reactivate=Réactiver CreateInternalUserDesc=Cet écran permet de créer un utilisateur interne à votre société/institution. Pour créer un utilisateur externe (client, fournisseur, ...), utiliser le bouton 'Créer utilisateur Dolibarr' qui se trouve sur la fiche contact du tiers en question. InternalExternalDesc=Un utilisateur interne est un utilisateur appartenant à votre société/institution.
Un utilisateur externe est un utilisateur client, fournisseur ou autre.

Dans les 2 cas, les permissions utilisateurs définissent les droits d'accès mais l'utilisateur externe peut en plus avoir un gestionnaire de menu différent de l'utilisateur interne (Voir Accueil - Configuration - Affichage) +PermissionInheritedFromAGroup=La permission est accordée car héritée d'un groupe auquel appartient l'utilisateur. diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 943e6e8277f..59b09963073 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1068,37 +1068,47 @@ print "\n
\n"; if ($_GET["action"] == '') { - if ( $user->rights->produit->creer) - { - if ($product->no_button_edit <> 1) - print ''.$langs->trans("Edit").''; + if ( $user->rights->produit->creer) + { + if ($product->no_button_edit <> 1) + print ''.$langs->trans("Edit").''; - if ($product->no_button_copy <> 1) - print ''.$langs->trans("CreateCopy").''; - } + if ($product->no_button_copy <> 1) + print ''.$langs->trans("CreateCopy").''; + } - /* - if ($product->isproduct() && $user->rights->commande->creer) - { - $langs->load('orders'); - print ''; - print $langs->trans("CreateCustomerOrder").''; - } + /* + if ($product->isproduct() && $user->rights->commande->creer) + { + $langs->load('orders'); + print ''; + print $langs->trans("CreateCustomerOrder").''; + } - if ($product->isproduct() && $user->rights->fournisseur->commande->creer) - { - $langs->load('orders'); - print ''; - print $langs->trans("CreateSupplierOrder").''; - } - */ - - $product_is_used = $product->verif_prod_use($product->id); - if ($user->rights->produit->supprimer && ! $product_is_used && $product->no_button_delete <> 1) - { - print ''.$langs->trans("Delete").''; - } + if ($product->isproduct() && $user->rights->fournisseur->commande->creer) + { + $langs->load('orders'); + print ''; + print $langs->trans("CreateSupplierOrder").''; + } + */ + $product_is_used = $product->verif_prod_use($product->id); + if ($user->rights->produit->supprimer) + { + if (! $product_is_used && $product->no_button_delete <> 1) + { + print ''.$langs->trans("Delete").''; + } + else + { + print ''.$langs->trans("Delete").''; + } + } + else + { + print ''.$langs->trans("Delete").''; + } } print "\n

\n"; diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index a00408452b4..8305afc95a6 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -1,7 +1,7 @@ * Copyright (C) 2002-2003 Jean-Louis Bergamo - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2008 Laurent Destailleur * Copyright (C) 2004 Eric Seigne * * This program is free software; you can redistribute it and/or modify @@ -19,7 +19,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -76,16 +75,16 @@ if ($_GET["action"] == 'delrights' && $caneditperms) - -llxHeader('',$langs->trans("Permissions")); - - /* ************************************************************************** */ /* */ /* Visu et edition */ /* */ /* ************************************************************************** */ +llxHeader('',$langs->trans("Permissions")); + +$form=new Form($db); + $fuser = new User($db, $_GET["id"]); $fuser->fetch(); $fuser->getrights(); @@ -294,7 +293,10 @@ if ($result) // Permission own by group if ($caneditperms) { - print ''.$langs->trans("Group").''; + print ''; + print $form->textwithtooltip($langs->trans("Group"),$langs->trans("PermissionInheritedFromAGroup")); + //print ''; + print ''; } print ''; print img_tick();