GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Escalated
  • Documentation
  • Academy
  • 141
  • Get Started
  • Getting Started
  • Installation
  • Frontend Setup
  • Theming
  • Configuration
  • Routes
  • User Model
  • Authorization
  • Single Sign-On

This view

  • Original page
  • New address

GeezerVison is showing escalated.dev — Authorization

Configuration / Authorization

Getting Started

  • Getting Started
  • Installation
  • Frontend Setup
  • Theming

Configuration

  • Configuration
  • Routes
  • User Model
  • Authorization
  • Single Sign-On

Tickets & Conversations

  • Tickets
  • Public Tickets
  • Conversations
  • Statuses & Priorities
  • SLAs & Escalation
  • Satisfaction Ratings
  • Followers

Agent Tools

  • Macros
  • Bulk Actions
  • Custom Ticket Actions
  • Collaboration
  • Keyboard Shortcuts

Automation & Workflows

  • Workflows
  • Automations
  • Automation Types
  • Scheduling
  • Events

Email & Notifications

  • Inbound Email
  • Notifications
  • Newsletters

API & Data

  • REST API
  • Management Commands
  • Mobile SDKs
  • Importing Data

Extending

  • Plugin Development
  • Contributing
  • Compare

Authorization

The configuration keys, routes, gates, and commands shown here describe the Laravel adapter unless a framework is named. Use your adapter source for its corresponding API and defaults.

Escalated uses two authorization gates to control access to agent and admin views. Define these in your application to control who can manage tickets.

Note: Escalated automatically shares page.props.escalated to all Inertia responses, containing the route prefix and the current user's agent/admin status.

Granular permissions

Escalated ships with 52 granular permissions organized into logical groups:

Group Example permissions
Tickets tickets.view, tickets.create, tickets.update, tickets.delete, tickets.merge, tickets.assign, tickets.change_department
Conversations conversations.reply, conversations.add_note, conversations.delete, conversations.edit
Users users.view, users.create, users.update, users.delete, users.impersonate
Knowledge Base kb.view, kb.create, kb.update, kb.delete, kb.publish
Reports reports.view, reports.export, reports.scheduled
Admin admin.settings, admin.departments, admin.sla, admin.macros, admin.automations, admin.roles, admin.integrations, admin.billing
Bulk Operations bulk.update, bulk.delete, bulk.assign
Tags tags.view, tags.create, tags.delete
SLA sla.view, sla.manage, sla.override
Satisfaction satisfaction.view, satisfaction.manage
Collaboration collaboration.side_conversations, collaboration.followers, collaboration.shared_views

Each permission can be granted or denied independently per role.

Default roles

Escalated includes three built-in roles:

Admin

Full access to all 52 permissions. Admins can manage settings, roles, agents, departments, SLA policies, automations, and billing. Cannot be deleted.

Agent

Standard support agent with permissions to manage tickets, conversations, and the knowledge base. Cannot access admin-level settings, roles, or billing.

  • Tickets: view, create, update, assign
  • Conversations: reply, add note
  • Knowledge Base: view, create, update
  • Tags: view, create
  • Reports: view
  • Collaboration: side conversations, followers

Light Agent

Restricted role for part-time or external collaborators. Light agents can view tickets and add internal notes but cannot send public replies or modify ticket properties.

  • Tickets: view
  • Conversations: add note
  • Knowledge Base: view
  • Tags: view

Custom roles

Create custom roles from Admin -> Roles to match your team's structure. Each custom role starts with no permissions -- toggle individual permissions on or off using the permission matrix.

Creating a custom role

  1. Navigate to Admin -> Roles
  2. Click New Role
  3. Enter a role name and optional description
  4. Use the permission matrix to enable or disable each of the 52 permissions
  5. Click Save

Assign the role to agents from the agent profile page or during agent creation.

Permission matrix UI

The permission matrix is a grid that shows all permissions grouped by category. Each row is a permission and each column is a role. Toggle a cell to grant or revoke that permission for the role. Changes take effect immediately after saving -- no agent restart is required.

Define two gates in App\Providers\AppServiceProvider::boot() for Laravel 12+, or App\Providers\AuthServiceProvider::boot() for Laravel 11 and earlier:

use Illuminate\Support\Facades\Gate;

// Who can access the agent dashboard and manage tickets
Gate::define('escalated-agent', fn ($user) =>
    $user->is_agent
);

// Who can access admin settings (departments, SLAs, rules, etc.)
Gate::define('escalated-admin', fn ($user) =>
    $user->is_admin
);

Gate names are configurable via config/escalated.php under authorization.admin_gate and authorization.agent_gate.

Configure lambdas in the initializer:

Escalated.configure do |config|
  config.admin_check = ->(user) { user.admin? }
  config.agent_check = ->(user) { user.agent? || user.admin? }
end

Define callables in your settings:

ESCALATED = {
    "ADMIN_CHECK": lambda user: user.is_staff,
    "AGENT_CHECK": lambda user: hasattr(user, "is_agent") and user.is_agent,
}

Configure authorization callbacks in your config:

authorization: {
  isAgent: async (user) => {
    return user.role === 'agent' || user.role === 'admin'
  },
  isAdmin: async (user) => {
    return user.role === 'admin'
  },
}

Define two Laravel gates, then reference them in the Filament plugin:

Gate::define('escalated-agent', fn ($user) => $user->is_agent);
Gate::define('escalated-admin', fn ($user) => $user->is_admin);
EscalatedFilamentPlugin::make()
    ->agentGate('escalated-agent')
    ->adminGate('escalated-admin')

WordPress uses built-in roles and capabilities. The plugin registers two custom roles:

Role Description
escalated_agent Can view and manage tickets
escalated_admin Full access to settings, departments, and SLA policies

Authorization is handled entirely server-side. The Flutter package sends a Bearer token with each request, and your backend API controls what the authenticated user can access.

There are no client-side gates to define — the mobile app is a customer-facing UI, so agent and admin authorization checks only apply on the web.

Checking Auth State

Use the authProvider to check whether the current user is authenticated:

final authState = ref.watch(authProvider);

if (authState.isAuthenticated) {
  // User is logged in, show ticket list
} else {
  // Show login screen
}

Note: The escalated-agent and escalated-admin gates from your backend still apply to all API requests. The mobile app simply doesn't expose agent or admin views.

Authorization is handled entirely server-side. The React Native package sends a Bearer token with each request, and your backend API controls what the authenticated user can access.

There are no client-side gates to define — the mobile app is a customer-facing UI, so agent and admin authorization checks only apply on the web.

Checking Auth State

Use the useAuth hook to access the current user and authentication status:

import { useAuth } from '@escalated-dev/escalated-react-native';

function ProfileScreen() {
  const { user, isAuthenticated } = useAuth();

  if (!isAuthenticated) {
    return <LoginScreen />;
  }

  return <Text>Welcome, {user.name}</Text>;
}

Note: The escalated-agent and escalated-admin gates from your backend still apply to all API requests. The mobile app simply doesn't expose agent or admin views.

Edit this page on GitHub
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.