刷新共享笔记时有问题
This commit is contained in:
1 parent
17718732cc
commit
be01c9c3f7
1 file changed
+5
-2
@@ -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