Fix: [Bug #13] CashDesk: Everyone can access to the Point of sales
This commit is contained in:
parent
0624e5d34b
commit
081daee307
@ -82,6 +82,15 @@ class modCashDesk extends DolibarrModules
|
||||
|
||||
// Permissions
|
||||
$this->rights = array();
|
||||
$this->rights_class = 'cashdesk';
|
||||
$r=0;
|
||||
|
||||
$r++;
|
||||
$this->rights[$r][0] = 50001;
|
||||
$this->rights[$r][1] = 'Use cashdesk';
|
||||
$this->rights[$r][2] = 'a';
|
||||
$this->rights[$r][3] = 1;
|
||||
$this->rights[$r][4] = 'use';
|
||||
|
||||
// Main menu entries
|
||||
$this->menus = array(); // List of menus to add
|
||||
@ -97,7 +106,7 @@ class modCashDesk extends DolibarrModules
|
||||
'langs'=>'cashdesk', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||
'position'=>100,
|
||||
'enabled'=>'$conf->cashdesk->enabled',
|
||||
'perms'=>1, // Use 'perms'=>'1' if you want your menu with no permission rules
|
||||
'perms'=>'$user->rights->cashdesk->use', // Use 'perms'=>'1' if you want your menu with no permission rules
|
||||
'target'=>'pointofsale',
|
||||
'user'=>0); // 0=Menu for internal users, 1=external users, 2=both
|
||||
|
||||
|
||||
@ -641,6 +641,7 @@ Permission2515=Configuració carpetes de documents
|
||||
Permission8555=Ús del mòdul
|
||||
Permission8556=Establir llocs ecommerce
|
||||
Permission8557=Importar dades
|
||||
Permission50001=Utilitzar TPV
|
||||
Permission50201=Consultar les transaccions
|
||||
Permission50202=Importar les transaccions
|
||||
DictionnaryCompanyType=Tipus d'empresa
|
||||
|
||||
@ -635,6 +635,7 @@ Permission2501=Read/Download documents
|
||||
Permission2502=Download documents
|
||||
Permission2503=Submit or delete documents
|
||||
Permission2515=Setup documents directories
|
||||
Permission50001=Use Point of sales
|
||||
Permission50201= Read transactions
|
||||
Permission50202= Import transactions
|
||||
DictionnaryCompanyType=Company types
|
||||
|
||||
@ -641,6 +641,7 @@ Permission2515=Configuración directorios de documentos
|
||||
Permission8555=Uso del módulo
|
||||
Permission8556=Establecer sitios e-commerce
|
||||
Permission8557=Importar datos
|
||||
Permission50001=Usar TPV
|
||||
Permission50201=Consultar las transacciones
|
||||
Permission50202=Importar las transacciones
|
||||
DictionnaryCompanyType=Tipos de empresa
|
||||
|
||||
@ -642,6 +642,7 @@ Permission2515= Administrer les rubriques de documents
|
||||
Permission8555= Utilisation du module
|
||||
Permission8556= Définir les sites ecommerce
|
||||
Permission8557= Importer les données
|
||||
Permission50001=Utiliser Point de vente
|
||||
Permission50201= Consulter les transactions
|
||||
Permission50202= Importer les transactions
|
||||
DictionnaryCompanyType= Types de sociétés
|
||||
|
||||
Loading…
Reference in New Issue
Block a user