mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
initial serverside components for 'disableEmbedding' functionality
This commit is contained in:
parent
1a18eafb7f
commit
ef6f98c149
@ -300,6 +300,7 @@ var setLastEviction = function (Env, Server, cb, data, unsafeKey) {
|
||||
var instanceStatus = function (Env, Server, cb) {
|
||||
cb(void 0, {
|
||||
restrictRegistration: Env.restrictRegistration,
|
||||
disableEmbedding: Env.disableEmbedding,
|
||||
launchTime: Env.launchTime,
|
||||
currentTime: +new Date(),
|
||||
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user