Feito para equipas por turnos:
Concebido para as regras de tempo de trabalho da UE
|
Voltar ao blogue
Roles & Permissions

One Site, One Rule: Roles That Don't Leak

Tested: site-bound permissions — a manager for Site A can't approve Site B, and kiosk rights stay per site.

CT

Por Chegatta Team

1 min de leitura

Partilhar

The Real-World Context

A manager for Lisbon should not approve Porto. A kiosk tablet should not see every site.

The Test Scenario

We gave a manager kiosk-read on Site Lisbon only via SiteManagerGrants, then tried to read Kiosk on Site Porto and to approve overtime on Porto.

How It Works (The Mechanics)

  1. Per-site grantsSiteManagerGrants kiosk-read/update bound to site_id.
  2. Policy checkKioskPolicy checks grants->hasPermission(user, site, kiosk-read).
  3. Business fallback — admins with business_id match still pass where allowed.

The Results / What We Verified

  • Lisbon read allowed, Porto denied. Pass.
  • Overtime approval blocked on Porto. Pass.

Honest caveat: Grant setup is manual per site — copy grants don’t auto-inherit when you add a new site.

Call to Action

Set permissions per site in seconds — Instant 2-Minute Setup • No Credit Card Required. Try Chegatta free at Chegatta.com.

CT

Sobre a Chegatta

A Chegatta é uma plataforma de assiduidade verificada e conforme para agências de trabalho temporário e empresas. A nossa equipa escreve guias práticos sobre assiduidade, conformidade salarial e prevenção de fraudes de horário.

Publicações relacionadas

Instant 2-Minute Setup • No Credit Card Required

Start Running Accurate Shift Roster & GPS Clock-In Today

Zero hardware cost. Automate time tracking, shift verification and banking-grade SEPA payroll exports.

14 days full accessZero setup hardwareCancel anytime