hledger/hledger-web/Hledger/Web
Simon Michael 95d33f20f6 imp:web: access control UX cleanups (fix #834)
Changes:

1. rename the sandstorm "manage" permission to "edit"
(old permission names: view, add, manage;
 new permission names: view, add, edit).

Rationale: "edit" best describes this permission's current powers, to users and to operators.
If we ever added more manager-type features we'd want that to be a new permission,
not a rename of the existing one (which would change the powers of existing users).

2. rename the sandstorm roles for consistency with permissions
(old role names: viewer, editor, manager;
 new role names: viewer, adder, editor)

Rationale: it's needed to avoid confusion.

3. add a new option: --allow=view|add|edit|sandstorm (default: add).
'sandstorm' sets permissions according to the X-Sandstorm-Permissions header.
Drop the --capabilities and --capabilities-header options.

Rationale: it's simpler and more intuitive.

4. replace "capability" with "permission" in ui/docs/code.

Rationale: consistent with the above, more familiar.
2023-10-24 13:37:36 +01:00
..
Handler imp:web: access control UX cleanups (fix #834) 2023-10-24 13:37:36 +01:00
Settings web: Conform layout to the rest of hledger-* packages 2018-06-24 14:18:06 +02:00
Widget dev: web: refactor: ViewData q, m -> qparam, q 2023-05-01 13:23:33 -10:00
Application.hs ;web: tests: refactor, add a test for --forecast (#1390) 2020-11-13 16:40:33 -08:00
Foundation.hs imp:web: access control UX cleanups (fix #834) 2023-10-24 13:37:36 +01:00
Import.hs imp:web: access control UX cleanups (fix #834) 2023-10-24 13:37:36 +01:00
Main.hs dev: cln: drop Hledger.Data.RawOptions.inRawOpts 2023-05-09 10:02:24 -10:00
Settings.hs fix:web:edit form: fix broken "File format help" link (fix #2103) 2023-10-21 03:36:04 +01:00
Test.hs Fix failing hledger-web test 2023-01-21 23:24:43 +01:00
WebOptions.hs imp:web: access control UX cleanups (fix #834) 2023-10-24 13:37:36 +01:00