mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Show usage banners in doc menu of free team sites
Summary: Also fixes a minor CSS regression in UserManager where the link to add a team member wasn't shown on a separate row. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3444
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import {isOwner} from 'app/common/roles';
|
||||
import {ManagerDelta, PermissionDelta, UserAPI} from 'app/common/UserAPI';
|
||||
|
||||
/**
|
||||
@@ -7,7 +8,7 @@ import {ManagerDelta, PermissionDelta, UserAPI} from 'app/common/UserAPI';
|
||||
*/
|
||||
export async function resetOrg(api: UserAPI, org: string|number) {
|
||||
const session = await api.getSessionActive();
|
||||
if (!(session.org && session.org.access === 'owners')) {
|
||||
if (!isOwner(session.org)) {
|
||||
throw new Error('user must be an owner of the org to be reset');
|
||||
}
|
||||
const billing = api.getBillingAPI();
|
||||
|
||||
Reference in New Issue
Block a user