|
|
|
@ -48,6 +48,8 @@ ADD_INVITE
|
|
|
|
|
REVOKE_INVITE
|
|
|
|
|
REDEEM_INVITE
|
|
|
|
|
|
|
|
|
|
DISABLE_EMBEDDING
|
|
|
|
|
|
|
|
|
|
// 2.0
|
|
|
|
|
Env.DEV_MODE || Env.FRESH_MODE,
|
|
|
|
|
|
|
|
|
@ -87,6 +89,9 @@ var makeBooleanSetter = function (attr) {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['DISABLE_EMBEDDING', [true]]], console.log)
|
|
|
|
|
commands.DISABLE_EMBEDDING = makeBooleanSetter('disableEmbedding');
|
|
|
|
|
|
|
|
|
|
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['RESTRICT_REGISTRATION', [true]]], console.log)
|
|
|
|
|
commands.RESTRICT_REGISTRATION = makeBooleanSetter('restrictRegistration');
|
|
|
|
|
|
|
|
|
|