feat(users): enforce real bans from report processing and fix appeal lifting
- apply_report_action now writes aksrt_user_restriction via Restriction::restrict
and lifts via new lift_user_restriction(), replacing the display-only
aksrt_user_ban_state meta dual-track
- ban type restrictions destroy the target user's sessions on apply
- appeal approval lifts active ban/suspend/mute restrictions instead of
updating a nonexistent status column
- UsersBan.vue posts to /users/{id}/restrict with valid types (warn/mute/
suspend/ban), scope and expires_at
- add comment report entry to the comment actions dropdown
- add duplicate pending report guard on submit
- remove dead ReportCenter ajax handlers, option migration, REST alias
routes and write-only restriction meta
- fix report admin mail link to the real aksrt_user_ban page
- add report-ban contract tests
This commit is contained in:
@@ -252,9 +252,6 @@ if (class_exists('\AKSRT\Ai\AI')) {
|
||||
if (class_exists('\AKSRT\Payment\WeChatNotify')) {
|
||||
\AKSRT\Payment\WeChatNotify::get_instance()->init();
|
||||
}
|
||||
if (class_exists('\AKSRT\Messages\ReportCenter')) {
|
||||
\AKSRT\Messages\ReportCenter::get_instance()->init();
|
||||
}
|
||||
if (class_exists('\AKSRT\Core\CommentActions')) {
|
||||
\AKSRT\Core\CommentActions::get_instance()->init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user