Skip to content

Commit efbdeae

Browse files
author
moglia
committed
BugFix: FS#1234 - CLIENTNAME value when in reseller account - fixed with suggestion from Ciaran Johnston (cj). I make initial test and this worked fine but, need check if this fix impact affect any another part of ispconfig.
1 parent e6f79a1 commit efbdeae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/web/sites/tools.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ function replacePrefix($name, $dataRecord) {
5555

5656
function getClientName($dataRecord) {
5757
global $app, $conf;
58-
59-
if($_SESSION["s"]["user"]["typ"] != 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
58+
/* FS#1234 - CLIENTNAME value when in reseller account - need check this workarround impact */
59+
//if($_SESSION["s"]["user"]["typ"] != 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
60+
if($_SESSION["s"]["user"]["typ"] != 'admin' && ! $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
6061
// Get the group-id of the user
6162
$client_group_id = $_SESSION["s"]["user"]["default_group"];
6263
} else {

0 commit comments

Comments
 (0)