mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-26 01:09:22 +02:00
Let admins bypass character list count restriction
This commit is contained in:
parent
47bbee9acf
commit
88a13e6d10
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user