diff --git a/htdocs/core/modules/modOpenSurvey.class.php b/htdocs/core/modules/modOpenSurvey.class.php index 5d5b327deaf75a4e5b1d6e13495ae4b29f54970e..02cf9138a1f26b18978bd357f09220a924a2d48c 100644 --- a/htdocs/core/modules/modOpenSurvey.class.php +++ b/htdocs/core/modules/modOpenSurvey.class.php @@ -145,7 +145,7 @@ class modOpenSurvey extends DolibarrModules 'langs'=>'opensurvey', 'position'=>200, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. - 'perms'=>'', + 'perms'=>'$user->rights->opensurvey->read', 'target'=>'', 'user'=>0); $r++; @@ -173,7 +173,7 @@ class modOpenSurvey extends DolibarrModules 'langs'=>'opensurvey', 'position'=>220, 'enabled'=>'$conf->opensurvey->enabled', // Define condition to show or hide menu entry. Use '$conf->NewsSubmitter->enabled' if entry must be visible if module is enabled. - 'perms'=>'', + 'perms'=>'$user->rights->opensurvey->read', 'target'=>'', 'user'=>0); $r++; diff --git a/htdocs/core/modules/modResource.class.php b/htdocs/core/modules/modResource.class.php index 90ff3280feef49e5f4c34a5feb68a921d9a1d5ef..83476270bc506ba7380a5fcf8d839c7f4766a96b 100644 --- a/htdocs/core/modules/modResource.class.php +++ b/htdocs/core/modules/modResource.class.php @@ -190,7 +190,7 @@ class modResource extends DolibarrModules $r++; $this->rights[$r][0] = 63004; - $this->rights[$r][1] = 'Link resources'; + $this->rights[$r][1] = 'Link resources to agenda events'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'link'; $r++; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 76778ae7375ac107d3c1923282c665b9ea4cf236..236dbe82a8a7dddeb2081219147dffe5a0249b93 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -781,6 +781,10 @@ Permission55002=Create/modify polls Permission59001=Read commercial margins Permission59002=Define commercial margins Permission59003=Read every user margin +Permission63001=Read resources +Permission63002=Create/modify resources +Permission63003=Delete resources +Permission63004=Link resources to agenda events DictionaryCompanyType=Types of thirdparties DictionaryCompanyJuridicalType=Legal forms of thirdparties DictionaryProspectLevel=Prospect potential level