0
OP New Sysop Apr 18, 2026 12:03pm (edited 29x) view history

Source: src/Controllers/AdminUserActionController.php

Overview

No class-level docblock. Add one at the top of the file.

Extends: App\Controllers\BaseController Uses traits: App\Controllers\Concerns\ModifiesUsers

Public methods

changeRole(string $id): void

Undocumented.

suspend(string $id): void

Undocumented.

ban(string $id): void

Permanent ban. Bans are one-way in our model — time-based enforcement goes through suspend() instead. Every ban requires a user-facing reason AND an internal moderator note. The ban_duration field this endpoint used to accept is gone; any legacy caller that passes it is ignored.

unban(string $id): void

Undocumented.

addNote(string $id): void

Undocumented.

issueInfraction(string $id): void

Undocumented.

resetPassword(string $id): void

Undocumented.

resendVerification(string $id): void

Undocumented.

forceVerify(string $id): void

Undocumented.

clearLockout(string $id): void

Undocumented.

terminateSessions(string $id): void

Undocumented.

toggleShadowBan(string $id): void

Undocumented.

toggleExcludeStats(string $id): void

Super-admin-only: toggle the stats-exclusion flag on a user.

toggleExcludeLeaderboards(string $id): void

Super-admin-only: toggle the leaderboards-exclusion flag on a user.

toggleHideOnline(string $id): void

Super-admin-only: toggle the hide-online-status flag on a user.


Auto-generated from source by bin/sync-class-docs.php on 2026-04-21 09:56 CDT. Re-runs overwrite this thread body.


. __  ____   ___ ____  _     _     
 / /_| ___| / _ \___ \(_)___| |__  
| '_ \___ \| | | |__) | / __| '_ \ 
| (_) |__) | |_| / __/| \__ \ | | |
 \___/____/ \___/_____|_|___/_| |_|
        D2sk - Sysop

Log in or register to reply to this thread.