Skip to content
Snippets Groups Projects
Commit cd349ab6 authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

FIX #6505 Project elements page shows greyed-out links even if the option to...

FIX #6505 Project elements page shows greyed-out links even if the option to show actions not available is disabled

Close #6505
parent 277fa7db
No related branches found
No related tags found
No related merge requests found
......@@ -612,7 +612,9 @@ foreach ($listofreferent as $key => $value)
{
$addform.='<div class="inline-block valignmiddle">';
if ($testnew) $addform.='<a class="buttonxxx" href="'.$urlnew.'">'.($buttonnew?$langs->trans($buttonnew):$langs->trans("Create")).'</a>';
else $addform.='<a class="buttonxxx buttonRefused" disabled="disabled" href="#">'.($buttonnew?$langs->trans($buttonnew):$langs->trans("Create")).'</a>';
elseif (empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)) {
$addform.='<a class="buttonxxx buttonRefused" disabled="disabled" href="#">'.($buttonnew?$langs->trans($buttonnew):$langs->trans("Create")).'</a>';
}
$addform.='<div>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment