Roles & capabilities Lite
Three capabilities — view, process, manage — who gets them on activation, and how to hand them to a custom role safely.
The three capabilities
Slingback does not invent roles; it ships three capabilities you can grant to any role:
| Capability | Grants | Typical holder |
|---|---|---|
view_slingback | Read the returns list and request details. | Support staff who only answer customers. |
process_slingback | Approve, deny, receive, inspect and resolve lines — the decision layer, including refund execution. | Shop managers, returns agents. |
manage_slingback | Settings, the setup wizard, tools (diagnostics, bundle download) and license/self-test screens. | Administrators. |
On activation all three are granted to Administrator and Shop manager — the WooCommerce convention that shop managers hold money powers. Nobody else sees a Returns menu.
Giving access to a custom role
- Open the role editor of your choice (a members/roles plugin, or
WP_Rolesin code). - Grant
view_slingbackfor read-only, addprocess_slingbackto decide, and reservemanage_slingbackfor people who may change policy and money settings. - Verify by logging in as that role: the menu appears, decisions work, and Settings stays hidden.
Why "needs admin permission" errors happen: the screen you opened requires a capability your role lacks — the exact capability is named in the message, so the administrator knows precisely what to grant. Full walkthrough: permission errors.
Separation of duties, on purpose
- A viewer can answer "where is my return?" without being able to move money.
- A processor can run the daily queue — including refunds — without touching window policy, reasons or retention.
- Only managers change policy and use the Tools tab (diagnostics, the diagnostic bundle).
Every decision is recorded with the acting user in an append-only audit trail, so "who approved this?" always has an answer. Related: troubleshooting · FAQ.