刷新共享笔记时有问题

This commit is contained in:
life
2014-12-09 23:43:14 +08:00
parent 17718732cc
commit be01c9c3f7

View File

@ -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;
}