Skip to content
Snippets Groups Projects
Commit b5393299 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

deployment gui - task#1411 - commands on cli will be executed with "cliadmin"

parent c239344f
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ return array(
// "developer" => array(),
// "projectmanager" => array(),
"admin" => array(
"cliadmin", // generic cli user from user class
"hahn",
"dschueler",
),
......
......@@ -64,6 +64,9 @@ class user {
if (!$sUser && is_array($_SERVER) && array_key_exists("PHP_AUTH_USER", $_SERVER)){
$sUser=$_SERVER["PHP_AUTH_USER"];
}
if (php_sapi_name() == "cli") {
$sUser="cliadmin";
}
return $sUser;
}
......@@ -190,7 +193,7 @@ class user {
* @return type
*/
public function showDenied(){
return '<div class="alert alert-danger" role="alert">'
return 'USER: ' . $this->_sUsername . ' - groups ' . print_r($this->getUserGroups(),1) . '<div class="alert alert-danger" role="alert">'
. t("class-user-error-deny-no-role").'<br>('.$this->_sLastCheckedPermission.')</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