mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #1210 autosave error for logged-in users @largeden
This commit is contained in:
parent
409ffe867b
commit
b1f7a7ba53
1 changed files with 1 additions and 1 deletions
|
|
@ -469,7 +469,7 @@ class editorModel extends editor
|
|||
|
||||
// Change auto-saved data
|
||||
$saved_doc->certify_key = $auto_save_args->certify_key;
|
||||
if(!$saved_doc->certify_key)
|
||||
if(!$saved_doc->certify_key && !Context::get('is_logged'))
|
||||
{
|
||||
$saved_doc->certify_key = Rhymix\Framework\Security::getRandom(32);
|
||||
setcookie('autosave_certify_key_' . $saved_doc->module_srl, $saved_doc->certify_key, time() + 86400, null, null, RX_SSL, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue