Merge pull request #11279 from atm-maxime/fix_tag_missing_right
Fix : missing rights test to display tag create link
This commit is contained in:
commit
190cf8aba5
@ -65,9 +65,12 @@ $arrayofcss=array('/includes/jquery/plugins/jquerytreeview/jquery.treeview.css')
|
|||||||
|
|
||||||
llxHeader('',$title,'','',0,0,$arrayofjs,$arrayofcss);
|
llxHeader('',$title,'','',0,0,$arrayofjs,$arrayofcss);
|
||||||
|
|
||||||
$newcardbutton = '<a class="butActionNew" href="'.DOL_URL_ROOT.'/categories/card.php?action=create&type='.$type.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?type='.$type).'"><span class="valignmiddle">'.$langs->trans("NewCategory").'</span>';
|
$newcardbutton='';
|
||||||
$newcardbutton.= '<span class="fa fa-plus-circle valignmiddle"></span>';
|
if (! empty($user->rights->categorie->creer)) {
|
||||||
$newcardbutton.= '</a>';
|
$newcardbutton = '<a class="butActionNew" href="'.DOL_URL_ROOT.'/categories/card.php?action=create&type='.$type.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?type='.$type).'"><span class="valignmiddle">'.$langs->trans("NewCategory").'</span>';
|
||||||
|
$newcardbutton.= '<span class="fa fa-plus-circle valignmiddle"></span>';
|
||||||
|
$newcardbutton.= '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
print load_fiche_titre($title, $newcardbutton);
|
print load_fiche_titre($title, $newcardbutton);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user