fix self enable switch

This commit is contained in:
xiaomlove
2026-04-09 11:48:21 +07:00
parent 9e632811ef
commit 431fbfff56
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -3181,7 +3181,7 @@ function loggedinorreturn($mainpage = false) {
}
exit();
}
if ($CURUSER['enabled'] != 'yes' && $script != 'self-enable' && \App\Models\Setting::getSelfEnableBonus() > 0) {
if ($CURUSER['enabled'] != 'yes' && $script != 'self-enable') {
nexus_redirect('self-enable.php');
}
}