gristlabs_grist-core/app/gen-server/lib/homedb
Jarosław Sadziński 14718120bd (core) Allowing installation admins to manage billing.
Summary:
Permissions for admin billing endpoints were changed

- Support user can't use admin subscription endpoints
- Installation admin (as support user) can see billing details on any site
- Installation admin (unlike support user) can replace subscription (or attach payment) on any site, regardless permissions

Installation admin is any user that belongs to a special `admin` org. If `admin` org is not defined, it defaults to
support user. In that case, with this diff, the support user receives admin's permissions, and now can replace subscription on
any site (without being billing manager).

Test Plan: Added new test

Reviewers: dsagal, paulfitz

Reviewed By: dsagal, paulfitz

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D4338
2024-09-11 23:06:47 +02:00
..
HomeDBManager.ts (core) Allowing installation admins to manage billing. 2024-09-11 23:06:47 +02:00
Interfaces.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
UsersManager.ts (core) Fixing lock issues and reverting back to single connection. 2024-09-11 20:48:52 +02:00