castle/static/js
padreug 142b26d7da Set default permission type to 'submit_expense' in grant forms
Changed default permission type from 'read' to 'submit_expense' in
all permission grant forms, as this is the most common use case when
Castle admins grant permissions to users.

Changes:
- grantForm initialization (line 31): 'read' → 'submit_expense'
- bulkGrantForm initialization (line 42): 'read' → 'submit_expense'
- resetGrantForm() method (line 315): 'read' → 'submit_expense'
- resetBulkGrantForm() method (line 402): 'read' → 'submit_expense'

Rationale: Most users need to submit expenses to their assigned
accounts, making 'submit_expense' a more practical default than
'read'. Admins can still select other permission types from the
dropdown if needed.

Affected: static/js/permissions.js

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 23:18:40 +01:00
..
index.js Fix loading state hang when user has no permissions 2025-11-11 23:03:05 +01:00
permissions.js Set default permission type to 'submit_expense' in grant forms 2025-11-11 23:18:40 +01:00