Skip to content

Permissions

Every tCAD ACE key, what each one gates, which ones reach civilian, medical and judicial records, and a starter server.cfg block per role.

Every capability tCAD checks is an ACE object, granted in server.cfg. There is nowhere else to grant one.

Authority is checked server-side, every time, on the acting player's source. The NUI is sent no permission set at all, so hiding a button is decoration and reaching a screen is not a grant.

How a method is gated

Two things are true of every operation:

  1. It requires Config.permissions.use — tcad.use — on top of whatever else it asks for.
  2. A method cannot be registered without naming a permission or explicitly declaring itself open. The registration call raises otherwise. So the authority check is structural rather than remembered: there is no path by which somebody adds an operation and forgets the gate.

ACE inheritance applies, and every key shares the tcad. prefix deliberately — so add_ace group.admin "tcad" allow grants the whole tree.

Every key

Opening the CAD

KeyACE objectGates
usetcad.useRequired for every method. Also Config.acePermission, which gates opening the panel

Calls

KeyACE objectGates
createCalltcad.calls.createFile a new call
editCalltcad.calls.editChange a call's details
holdCalltcad.calls.holdPut a call on hold
cancelCalltcad.calls.cancelCancel a call
closeCalltcad.calls.closeClose a call

Adding a comment to a call is open beyond use. It is the one call action with no key of its own: a unit noting what they saw is not an administrative act, and gating it produces a timeline with gaps in it.

Dispatch

KeyACE objectGates
dispatchSelftcad.dispatch.selfAttach yourself to a call
dispatchUnittcad.dispatch.unitAttach or detach somebody else

Two keys rather than one because attaching yourself is a much smaller capability than assigning another unit. Detaching yourself is open beyond use — a unit must always be able to clear.

Setting your own status needs no key at all. Its authority is by state: the actor must be on duty in that department.

Records — ⛔ these gate personal data

Every civilian, vehicle and warrant operation comes in two forms: one scoped to the caller's own records, which needs nothing beyond use, and one that reaches every record, which needs the key below. A player managing their own character is not an administrative act; a player reading somebody else's medical notes is.

KeyACE objectGates
viewCiviliantcad.civilian.viewRead any civilian's record, their vehicles and their warrants
editCiviliantcad.civilian.editEdit or delete any civilian's record, and set the LEO vehicle flags (stolen, impounded, BOLO, repo)
runNcictcad.ncic.runRun an NCIC person or plate query

viewCivilian is wider than it looks: it also gates the subject's SSN on a warrant. A warrant is readable by anyone with tcad.use — it is a public court record — but the identifying number on it needs this key. A judge without it can approve and deny warrants and will not see which person each one names beyond their name, which for two characters with the same name is a judge ruling on the wrong person. That is a worse outcome than the disclosure the key controls, so if you grant tcad.warrants.approve or tcad.warrants.deny to a group, grant tcad.civilian.view to the same group.

A dispatcher deliberately does not need it: dispatch works calls and units, and a civilian's identifying number is not part of that. A dispatcher opening a warrant sees it in full apart from that field.

editCivilian is separate from viewCivilian because reading a record and rewriting somebody else's are different acts — and because an owner must not be able to clear their own stolen-vehicle flag, which is exactly what collapsing the two would allow.

runNcic has its own key because every query is logged against the officer who ran it. A CAD where everyone can run a name is a CAD where nobody can be held to it.

Warrants

KeyACE objectGates
createWarranttcad.warrants.createRequest a warrant
approveWarranttcad.warrants.approveApprove a requested warrant
denyWarranttcad.warrants.denyDeny a requested warrant
serveWarranttcad.warrants.serveMark a warrant served
recallWarranttcad.warrants.recallWithdraw a warrant, and the extradition hold

Five keys rather than one, because the separation is the point of a judicial view: an officer requests and serves, a judge approves or denies. Granting approve to the requesting officer removes the review step entirely.

⛔ Administration

KeyACE objectBlast radius
manageAgencytcad.admin.agencyAgencies and departments — structure. Retiring a department takes its members off duty in it
manageCataloguetcad.admin.catalogueThe lookup catalogues: call types, priorities, statuses, dispositions, status codes, warrant types, licence types, weapon models. Wrong values are annoying and recoverable
viewAudittcad.admin.auditRead who changed what. Separate because it is a read, and a supervisor can reasonably audit without being able to change anything

Three keys rather than one, split by blast radius rather than by screen.

There is deliberately no key for deleting a catalogue entry as distinct from editing one. Delete is refused by the storage layer for every catalogue whose rows history points at — that is a correctness rule, not a permission — so a separate key would imply a capability that does not exist.

Messaging

KeyACE objectGates
sendBroadcasttcad.messages.broadcastSend a broadcast to every on-duty unit

One key, and only one. Four of the five messaging operations are open beyond use: a conversation is private to its members, which is state the server holds rather than a grant you configure.

⛔ Reports — these gate the most sensitive records in the product

A report's narrative is a sworn account of an incident naming civilians, and its charges are an accusation. Writing one and submitting one need nothing beyond use — filing a report is the job — and both are scoped to the officer's own reports by the storage layer rather than by a permission.

KeyACE objectGates
viewReporttcad.reports.viewRead any officer's reports, including the narrative
reviewReporttcad.reports.reviewApprove or reject a submitted report

Two keys, split by act rather than by screen. viewReport is the investigator and internal-affairs capability; an officer without it still reads and writes their own. reviewReport is the supervisor's signature on somebody else's work, and it is what makes a report final.

⛔ ePCR — this is a medical record about a named person

The electronic patient care report. Not the fire department's version of an incident report: it is a chief complaint, a blood pressure, a Glasgow Coma Score, an allergy list, a drug and a dose given to somebody, and a clinician's written account of their presenting illness, with a callsign against it.

KeyACE objectGates
viewEpcrtcad.epcr.viewRead any crew's patient care reports, in full
writeEpcrtcad.epcr.writeOpen a patient care report and record on it
reviewEpcrtcad.epcr.reviewApprove or reject a submitted patient care report

Split as the reports above are, with one difference: creating one needs a key where filing an incident report does not. What is being opened is a medical record about a named person, and everybody on your server holds use — a dispatcher, a judge, a business owner, a civilian. viewEpcr is about a patient, which makes it the most disclosive single grant in the resource after viewCivilian.

A crew reads and writes their own reports with none of these three beyond writeEpcr, scoped by the storage layer rather than by a key, so a medic can always read back the record they are about to be reviewed on. Setting viewEpcr and writeEpcr to the same object is legal and warns about nothing.

BOLOs

KeyACE objectGates
createBolotcad.bolos.createCreate or cancel a BOLO

Reading BOLOs is open beyond use — a standing alert nobody sees is an alert nobody acts on. This key is the write. A BOLO is read out at briefing and acted on by every unit, so a mistaken one is a stop made on bad information. Cancelling takes the same key as creating.

Shifts

KeyACE objectGates
manageShiftstcad.shifts.manageCreate the duty board

Signing up for a shift and dropping one need no grant: that is a member managing their own attendance, and the storage layer scopes both to the caller. This key is a watch commander's act — a shift created wrong is a shift the department turns up for at the wrong time. It is the duty board, not the live roster.

Fleet and apparatus

KeyACE objectGates
manageFleettcad.fleet.managePut a vehicle out of service or into maintenance, and sign in a vehicle whose holder has logged off
manageApparatustcad.apparatus.manageWhat apparatus the department owns, and which inspection checklist each type carries

Two keys and not one, because manageFleet is operational — it takes a vehicle off the board for everybody — while manageApparatus is administrative. Collapsing them lets every shift supervisor delete the fire roll.

Signing a vehicle out needs no grant and is authorised by state instead: the unit must be on duty in the department the vehicle belongs to. There is no useful ACE spelling of "may sign out a Mission Row cruiser". Nine of the thirteen apparatus operations likewise need no grant at all — reading the roll, joining or leaving a crew, running the checklist, filing an inspection and reporting a fault are all the job.

Creating, renaming and retiring fleet vehicles is not here, and neither is creating or renaming apparatus types — Engine, Ladder, Medic. Those definitions are catalogues and go through manageCatalogue. The rig is a record, and manageApparatus is the record's.

Pre-plans

KeyACE objectGates
editPrePlantcad.preplans.editWrite a tactical pre-plan, and retire one

Reading the premise index and opening a plan are open beyond use: a pre-plan exists to be read on the way to a call, and one that needs a grant is one the crew does not have when they arrive. This key is the write — a pre-plan is what a crew believes about a building, so a wrong one is worse than none.

A pre-plan's contacts are a key holder's name and phone number, and the storage layer keeps them off the open list for that reason. The list carries the address, the hazards and the access notes; the contacts arrive only when somebody opens that specific premise.

Geography

KeyACE objectGates
manageGeographytcad.geography.manageDraw, rename and retire a dispatch area, and the groups areas sit in

Reading the areas is open beyond use — the dispatch map draws from them, and a board whose areas need a grant is a board with no areas. One key covers areas and their groups, because they are one editor.

This is deliberately a separate key and not manageCatalogue: a dispatch area carries a polygon, which the catalogue mechanism cannot express, so borrowing that key would let the grant that edits a dropdown redraw the map.

⛔ Premise flags — personal data, not a map feature

A premise flag is "weapons at this address", "prior violence here", "hazmat", "medical alert" — attached to somebody's home, with a note an officer wrote about what happened there and their callsign against it. Two of the five types are medical information about whoever lives at the address.

KeyACE objectGates
viewAddressFlagtcad.addressflags.viewRead the flags on an address, and the note on each
manageAddressFlagtcad.addressflags.manageCreate a flag, and remove one

So the read needs a grant — the only read in the geography family that does. A pre-plan's hazards are about a building and only its contact list is personal; a premise flag has no such half, because the note is about the people at the address.

Setting these two to the same ACE object is legal and warns about nothing, unlike viewReport and reviewReport.

A starter block

Adapt the group names to your framework. These are illustrative roles, not a recommendation about who on your server should hold what.

cfg
# Everybody who uses the CAD at all
add_ace group.dispatcher "tcad.use"                allow
add_ace group.officer    "tcad.use"                allow
add_ace group.fire       "tcad.use"                allow
add_ace group.judge      "tcad.use"                allow

# Dispatch: calls and units. Deliberately NOT tcad.civilian.view.
add_ace group.dispatcher "tcad.dispatch.unit"      allow
add_ace group.dispatcher "tcad.calls.create"       allow
add_ace group.dispatcher "tcad.calls.edit"         allow
add_ace group.dispatcher "tcad.calls.hold"         allow
add_ace group.dispatcher "tcad.calls.cancel"       allow
add_ace group.dispatcher "tcad.calls.close"        allow
add_ace group.dispatcher "tcad.messages.broadcast" allow
add_ace group.dispatcher "tcad.bolos.create"       allow
add_ace group.dispatcher "tcad.addressflags.view"  allow

# Patrol
add_ace group.officer    "tcad.dispatch.self"      allow
add_ace group.officer    "tcad.calls.create"       allow
add_ace group.officer    "tcad.civilian.view"      allow
add_ace group.officer    "tcad.ncic.run"           allow
add_ace group.officer    "tcad.warrants.create"    allow
add_ace group.officer    "tcad.warrants.serve"     allow
add_ace group.officer    "tcad.addressflags.view"  allow

# Fire/EMS. tcad.epcr.write is the one grant every crew needs: without
# it nobody can write up a call at all.
add_ace group.fire       "tcad.dispatch.self"      allow
add_ace group.fire       "tcad.epcr.write"         allow
add_ace group.fire       "tcad.preplans.edit"      allow
add_ace group.fire       "tcad.addressflags.view"  allow

# Judiciary. tcad.civilian.view is granted WITH approve/deny, for the
# reason under Records above — without it a judge cannot tell two
# same-named subjects apart.
add_ace group.judge      "tcad.civilian.view"      allow
add_ace group.judge      "tcad.warrants.approve"   allow
add_ace group.judge      "tcad.warrants.deny"      allow
add_ace group.judge      "tcad.warrants.recall"    allow

# Supervisors. Each review key is granted WITH its view key, for the
# reason under Reports and ePCR above. Split group.supervisor in two if
# a watch commander should not read every patient record.
add_ace group.supervisor "tcad.use"                allow
add_ace group.supervisor "tcad.admin.audit"        allow
add_ace group.supervisor "tcad.reports.view"       allow
add_ace group.supervisor "tcad.reports.review"     allow
add_ace group.supervisor "tcad.epcr.view"          allow
add_ace group.supervisor "tcad.epcr.review"        allow
add_ace group.supervisor "tcad.shifts.manage"      allow
add_ace group.supervisor "tcad.fleet.manage"       allow
add_ace group.supervisor "tcad.apparatus.manage"   allow

# Administration. The whole subtree.
add_ace group.admin      "tcad"                    allow

Note what is not in that block: tcad.civilian.edit is granted to nobody, and neither tcad.reports.view nor tcad.epcr.view reaches patrol or dispatch. Rewriting another player's record, reading every narrative on the server and reading every patient record are each worth deciding on deliberately rather than inheriting from a starter config. tcad.addressflags.manage and tcad.geography.manage arrive only through the admin subtree, which is the one grant that covers the whole tree.

Refusing an action a grant allows

A grant is the floor, not the ceiling. Config.denyMethod in config/sv_functions.lua is called after the gate has already said yes, and the only thing it can do is turn that into a no — on duty state, time of day, your own rules.

No hook can grant a permission. Grants are ACE objects in server.cfg, where an auditor looks. See Customisation.

Checking what a key resolves to

tcad_config

in the server console prints the whole permission map with its resolved ACE object names, which is the fastest way to catch a renamed value that no longer matches your add_ace lines.

Was this page helpful?