Department Administration

Complete guide to managing departments in LuaBeans - Community Manager.

Overview

URL: /admin/departments

Access: Admin only

Purpose: Manage departments, their settings, and configurations

Features

Department List

View all departments with:

  • Department name and slug

  • Department type (LEO, staff, business, branch)

  • Member count

  • Parent department (if applicable)

Department Actions

Available actions:

  • Create new department

  • Edit department settings

  • Delete department

  • Manage department hierarchy

  • Configure Discord integration

Search departments by:

  • Name

  • Slug

  • Type

  • Parent department

Usage

Viewing Departments

  1. Go to AdminDepartments

  2. Browse the department list

  3. Use search to find specific departments

Creating Departments

  1. Click Create Department

  2. Fill in department information:

    • Name

    • Slug (URL-friendly identifier)

    • Type (LEO, staff, business, branch)

    • Parent department (if branch)

    • Description

  3. Configure Discord integration:

    • Discord role ID

    • Leadership roles

  4. Save department

Editing Departments

  1. Go to department list

  2. Click Edit on a department

  3. Modify department settings

  4. Save changes

Deleting Departments

  1. Go to department list

  2. Click Delete on a department

  3. Confirm deletion

Warning: Deleting a department will remove all memberships, roster entries, and related data.

Department Settings

Basic Information

  • Name - Display name

  • Slug - URL identifier (e.g., "police", "sheriff")

  • Type - Department type (LEO, staff, business, branch)

  • Parent - Parent department (for branches)

  • Description - Department description

Discord Integration

  • Discord Role ID - Role that grants department membership

  • Leadership Roles - Roles that grant leadership permissions

  • Guild Pairing - Discord server for RBAC

LEO Settings

For LEO departments:

  • Rank configuration

  • Vehicle management

  • Uniform management

  • Loadout management

  • Location management

  • Badge configuration

Department Hierarchy

Parent Departments

Parent departments can have child departments:

  • Departments can be branches of other departments

  • Branches inherit some settings from parent

  • Members of parent may have access to branches

Managing Hierarchy

  1. Create parent department first

  2. Create child departments and set parent

  3. Manage hierarchy in department list

Troubleshooting

Department Not Showing

Issue: Department doesn't appear in list

Solutions:

  1. Check department exists in database

  2. Verify filters aren't hiding it

  3. Check department settings

  4. Refresh page

Cannot Delete Department

Issue: Delete action fails

Solutions:

  1. Verify department has no members

  2. Check for dependent data (applications, forums, etc.)

  3. Remove all memberships first

  4. Check console logs for errors

Last updated