From 88a13e6d1053884536017173aa98289b97c8a81f Mon Sep 17 00:00:00 2001 From: Znote Date: Thu, 16 Dec 2021 23:18:56 +0100 Subject: [PATCH] Let admins bypass character list count restriction --- createcharacter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createcharacter.php b/createcharacter.php index da01edd..1a6dce6 100644 --- a/createcharacter.php +++ b/createcharacter.php @@ -67,7 +67,7 @@ if (empty($_POST) === false) { } // Char count $char_count = user_character_list_count($session_user_id); - if ($char_count >= $config['max_characters']) { + if ($char_count >= $config['max_characters'] && !is_admin($user_data)) { $errors[] = 'Your account is not allowed to have more than '. $config['max_characters'] .' characters.'; } if (validate_ip(getIP()) === false && $config['validate_IP'] === true) {