刷新共享笔记时有问题
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
|
||||
Share.hasUpdatePerm = function(notebookId) {
|
||||
var note = Share.cache[notebookId];
|
||||
Share.hasUpdatePerm = function(noteId) {
|
||||
var note = Share.cache[noteId];
|
||||
if(!note) {
|
||||
note = Note.getNote(noteId);
|
||||
}
|
||||
if(!note || !note.Perm) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user