feat: Integrações buttons only for the superadmin; the folder downloads in Arte recebida by default
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 3m7s
Build and deploy / Secret scan and release gate (push) Successful in 4s
Build and deploy / Publish images (push) Successful in 47s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-20 09:55:31 -03:00
parent c8857a5bf5
commit df30046027
6 changed files with 52 additions and 33 deletions

View File

@@ -115,14 +115,17 @@ def login_failed(email):
rate_limit('auth-account', email, 1_000_000)
# What each Kanban profile may do. "view" is reading; "produce" moves cards and
# handles artwork; "manage" covers quotes, cancellations, payments and the
# integrations; "users" is the Usuários page.
# handles artwork; "manage" covers quotes, cancellations and payments; "users"
# is the Usuários page; "integrations" is everything in Integrações but the
# print room's folder (connecting Tiny, the checks, the backup, the Tiny log):
# the others see there only what is on and off.
ROLES = ('superadmin', 'admin', 'gestao', 'operador', 'vendedor')
CAPABILITIES = {
'view': set(ROLES),
'produce': {'superadmin', 'admin', 'gestao', 'operador'},
'manage': {'superadmin', 'admin', 'gestao'},
'users': {'superadmin', 'admin'},
'integrations': {'superadmin'},
}