🛠️ Admin Tools
LogBook includes a set of internal tools accessible only to admins and dispatchers. These allow for XP management, user moderation, rank editing, and overall data integrity checks.
Access control
- Admin tools are restricted by user role (usually
admin
or dispatcher
)
- Access is enforced via PHP session validation on each tool page
Key admin tools
- Manual XP Editor: Add, remove, or adjust XP for any user with a reason
- Rank Manager: Modify XP thresholds and rank titles
- User Role Control: Promote or demote users (e.g. driver → mentor)
- Job Moderation: Review submitted jobs, delete invalid entries
- Top Drivers: View current top performers (by XP, distance, jobs)
- Internal Logs: History of XP changes, actions taken, moderation events
Logging actions
- Each admin action can optionally be logged (e.g. XP edit with timestamp and reason)
- Logs are stored in tables like
xplog
or audit_log
- Helps with transparency and dispute resolution
Security notes
- All admin actions should use CSRF protection and permission checks
- Access should be logged and limited to trusted users only
- Misuse of tools can lead to rank inflation or data loss
← Back to Wiki Index