刷新共享笔记时有问题
This commit is contained in:
@ -315,8 +315,11 @@ Share.changeNotebook = function(userId, notebookId, callback) {
|
|||||||
|
|
||||||
// 是否有更新权限
|
// 是否有更新权限
|
||||||
// called by Note
|
// called by Note
|
||||||
Share.hasUpdatePerm = function(notebookId) {
|
Share.hasUpdatePerm = function(noteId) {
|
||||||
var note = Share.cache[notebookId];
|
var note = Share.cache[noteId];
|
||||||
|
if(!note) {
|
||||||
|
note = Note.getNote(noteId);
|
||||||
|
}
|
||||||
if(!note || !note.Perm) {
|
if(!note || !note.Perm) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user