Fix: ajout des droits d'accs sur les documents
Todo: prvoir un droit de suppression des documents
This commit is contained in:
parent
546a6473cf
commit
0e98972028
@ -44,6 +44,7 @@ $langs->load("categories");
|
||||
// Load permissions
|
||||
$user->getrights('ecm');
|
||||
|
||||
if (!$user->rights->ecm->create) accessforbidden();
|
||||
|
||||
// Get parameters
|
||||
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
|
||||
|
||||
@ -255,7 +255,7 @@ print '<td class="liste_titre" align="right">'.$langs->trans("ECMNbOfDocsSmall")
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=refreshauto">'.img_picto($langs->trans("Refresh"),'refresh').'</a>';
|
||||
print '</td>';
|
||||
print '<td class="liste_titre" align="right">';
|
||||
if ($user->rights->ecm->create)
|
||||
if ($user->rights->ecm->setup)
|
||||
{
|
||||
print '<a href="'.DOL_URL_ROOT.'/ecm/docdir?action=create">'.img_picto($langs->trans("ECMNewSection"),'edit_add').'</a>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user