Skip to content

Commit 12ac516

Browse files
committed
Fixed bug in shell user limits and added a missing error message.
1 parent c4ff825 commit 12ac516

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

interface/web/sites/lib/lang/en_shell_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ $wb["quota_size_error_empty"] = 'Quota is empty.';
1919
$wb["uid_error_empty"] = 'UID empty.';
2020
$wb["uid_error_empty"] = 'GID empty.';
2121
$wb["directory_error_empty"] = 'Directory empty.';
22+
$wb["limit_shell_user_txt"] = 'The max number of shell users is reached.';
2223
?>

interface/web/sites/shell_user_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function onShowNew() {
5858

5959
// Get the limits of the client
6060
$client_group_id = $_SESSION["s"]["user"]["default_group"];
61-
$client = $app->db->queryOneRecord("SELECT limit_ftp_user FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
61+
$client = $app->db->queryOneRecord("SELECT limit_shell_user FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
6262

6363
// Check if the user may add another shell user.
6464
if($client["limit_shell_user"] >= 0) {

0 commit comments

Comments
 (0)