add complain switch

This commit is contained in:
xiaomlove
2025-05-01 16:39:44 +07:00
parent af33e5cba7
commit 8c903a6799
10 changed files with 23 additions and 2 deletions

View File

@@ -192,6 +192,11 @@ class Setting extends NexusModel
return self::get('main.spsct') == 'yes';
}
public static function getIsComplainEnabled(): bool
{
return self::get('main.complain_enabled') == 'yes';
}
public static function getIsAllowUserReceiveEmailNotification(): bool
{
return self::get('smtp.emailnotify') == 'yes';