Remove admin access on option
This commit is contained in:
parent
498431fa6f
commit
c3a23b0415
@ -226,8 +226,6 @@ print '<tr class="liste_titre">';
|
|||||||
print '<td colspan="2">'.$langs->trans('Options').'</td>';
|
print '<td colspan="2">'.$langs->trans('Options').'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
if (!empty($user->admin))
|
|
||||||
{
|
|
||||||
// TO DO Mutualize code for yes/no constants
|
// TO DO Mutualize code for yes/no constants
|
||||||
|
|
||||||
/* Set this option as a hidden option but keep it for some needs.
|
/* Set this option as a hidden option but keep it for some needs.
|
||||||
@ -299,10 +297,8 @@ if (!empty($user->admin))
|
|||||||
print '<input type="text" class="maxwidth100" id="'.$key.'" name="'.$key.'" value="'.$conf->global->$key.'">';
|
print '<input type="text" class="maxwidth100" id="'.$key.'" name="'.$key.'" value="'.$conf->global->$key.'">';
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
@ -312,8 +308,6 @@ print '<tr class="liste_titre">';
|
|||||||
print '<td colspan="2">'.$langs->trans('BindingOptions').'</td>';
|
print '<td colspan="2">'.$langs->trans('BindingOptions').'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
if (!empty($user->admin))
|
|
||||||
{
|
|
||||||
// TO DO Mutualize code for yes/no constants
|
// TO DO Mutualize code for yes/no constants
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>'.$langs->trans("ACCOUNTING_LIST_SORT_VENTILATION_TODO").'</td>';
|
print '<td>'.$langs->trans("ACCOUNTING_LIST_SORT_VENTILATION_TODO").'</td>';
|
||||||
@ -340,7 +334,6 @@ if (!empty($user->admin))
|
|||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
}
|
}
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
|
||||||
|
|
||||||
// Param a user $user->rights->accounting->chartofaccount can access
|
// Param a user $user->rights->accounting->chartofaccount can access
|
||||||
foreach ($list_binding as $key)
|
foreach ($list_binding as $key)
|
||||||
@ -359,11 +352,9 @@ foreach ($list_binding as $key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<div class="center"><input type="submit" class="button" value="'.$langs->trans('Modify').'" name="button"></div>';
|
print '<div class="center"><input type="submit" class="button" value="'.$langs->trans('Modify').'" name="button"></div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user