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
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:
@@ -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'},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user