mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 10:21:32 +01:00
Qual: Amlioration message erreur sur "permission denied"
This commit is contained in:
@@ -577,11 +577,18 @@ function accessforbidden()
|
||||
llxHeader();
|
||||
print '<div class="error">'.$langs->trans("ErrorForbidden").'</div>';
|
||||
print '<br>';
|
||||
if ($user->login) {
|
||||
print $langs->trans("Login").": ".$user->login."<br>";
|
||||
if ($user->login)
|
||||
{
|
||||
print $langs->trans("CurrentLogin").': <font class="error">'.$user->login.'</font><br>';
|
||||
print $langs->trans("ErrorForbidden2",$langs->trans("Home"),$langs->trans("Users"));
|
||||
}
|
||||
else {
|
||||
elseif (! empty($_SERVER["REMOTE_USER"]))
|
||||
{
|
||||
print $langs->trans("CurrentLogin").': <font class="error">'.$_SERVER["REMOTE_USER"]."</font><br>";
|
||||
print $langs->trans("ErrorForbidden2",$langs->trans("Home"),$langs->trans("Users"));
|
||||
}
|
||||
else
|
||||
{
|
||||
print $langs->trans("ErrorForbidden3");
|
||||
}
|
||||
llxFooter();
|
||||
|
||||
Reference in New Issue
Block a user