Skip to content

Commit 9adf496

Browse files
committed
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
2 parents 8c82ef8 + be0ffbc commit 9adf496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/client/domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function onAfterInsert() {
193193

194194
// make sure that the record belongs to the client group and not the admin group when admin inserts it
195195
// also make sure that the user can not delete domain created by a admin
196-
if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) {
196+
if(($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) || ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid']))) {
197197
$client_group_id = $app->functions->intval($this->dataRecord["client_group_id"]);
198198
$app->db->query("UPDATE domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id);
199199
}

0 commit comments

Comments
 (0)