Skip to content
Snippets Groups Projects
Commit 468549ac authored by hahn's avatar hahn
Browse files

ci-webgui show a clear error if the user is not logged in

parent a6208766
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,7 @@
"class-project-warning-phase-not-active": "Die Phase %s ist nicht aktiv.",
"class-user-error-deny-no-role": "FEHLER: Sie haben nicht genügend Berechtigungen.",
"class-user-error-login-required": "FEHLER: Sie sind noch nicht eingeloggt. Bitte melden Sie sich zuerst an.",
"page-accept-error-cannot-accept-phase": "Die Phase [%s] kann nicht akzeptiert werden.",
"page-accept-info": "Die Software wurde erfolgreich in der Phase <span class=\"%s\">%s</span> getestet und soll auf die n&auml;chste Phase <span class=\"%s\">%s</span> ausgerollt werden?",
......
......@@ -146,6 +146,7 @@
"class-project-warning-phase-not-active": "The phase %s is not active.",
"class-user-error-deny-no-role": "ERRROR: Your User has not enough permissions.",
"class-user-error-login-required": "ERROR: You need to login first.",
"page-accept-error-cannot-accept-phase": "The phase [%s] cannot be accepted.",
"page-accept-info": "The software was tested successfully in phase <span class=\"%s\">%s</span> and shall be rolled out in the next phase <span class=\"%s\">%s</span>?",
......
......@@ -194,7 +194,11 @@ class user {
*/
public function showDenied(){
return '<div class="alert alert-danger" role="alert">'
. t("class-user-error-deny-no-role").'<br>('.$this->_sLastCheckedPermission.')</div><br>'
. ($this->_sUsername ? ' User: '.$this->_sUsername : ''
? t("class-user-error-deny-no-role").'<br>('.$this->_sLastCheckedPermission.')'
: t("class-user-error-login-required")
)
. '</div><br>'
. '<a href="/deployment/all/login/" class="btn btn-primary">'.t('menu-login').'</a>'
;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment