mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Allow calendar edition for guests
This commit is contained in:
parent
4cb5d65989
commit
2476a2ca2a
@ -543,7 +543,7 @@ define([
|
||||
var hash = Hash.getEditHashFromKeys(secret);
|
||||
var roHash = Hash.getViewHashFromKeys(secret);
|
||||
|
||||
if (!ctx.loggedIn) { hash = undefined; }
|
||||
//if (!ctx.loggedIn) { hash = undefined; }
|
||||
|
||||
var cal = {
|
||||
href: hash && Hash.hashToHref(hash, 'calendar'),
|
||||
@ -926,7 +926,7 @@ define([
|
||||
}
|
||||
if (cmd === 'IMPORT_ICS') {
|
||||
if (ctx.store.offline) { return void cb({error: 'OFFLINE'}); }
|
||||
if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
//if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
return void importICSCalendar(ctx, data, clientId, cb);
|
||||
}
|
||||
if (cmd === 'ADD') {
|
||||
@ -946,7 +946,7 @@ define([
|
||||
}
|
||||
if (cmd === 'UPDATE') {
|
||||
if (ctx.store.offline) { return void cb({error: 'OFFLINE'}); }
|
||||
if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
//if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
return void updateCalendar(ctx, data, clientId, cb);
|
||||
}
|
||||
if (cmd === 'DELETE') {
|
||||
@ -956,17 +956,17 @@ define([
|
||||
}
|
||||
if (cmd === 'CREATE_EVENT') {
|
||||
if (ctx.store.offline) { return void cb({error: 'OFFLINE'}); }
|
||||
if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
//if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
return void createEvent(ctx, data, clientId, cb);
|
||||
}
|
||||
if (cmd === 'UPDATE_EVENT') {
|
||||
if (ctx.store.offline) { return void cb({error: 'OFFLINE'}); }
|
||||
if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
//if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
return void updateEvent(ctx, data, clientId, cb);
|
||||
}
|
||||
if (cmd === 'DELETE_EVENT') {
|
||||
if (ctx.store.offline) { return void cb({error: 'OFFLINE'}); }
|
||||
if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
//if (!ctx.loggedIn) { return void cb({error: 'NOT_LOGGED_IN'}); }
|
||||
return void deleteEvent(ctx, data, clientId, cb);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user