Skip to content

Commit 2c7bd39

Browse files
cloverheartsjongyoul
authored andcommitted
broadcast bugfix
1 parent f59d26a commit 2c7bd39

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ private void updatePersonalizedMode(NotebookSocket conn, HashSet<String> userAnd
780780

781781
NotebookAuthorization notebookAuthorization = notebook.getNotebookAuthorization();
782782
if (!notebookAuthorization.isOwner(noteId, userAndRoles)) {
783-
permissionError(conn, "rename", fromMessage.principal,
783+
permissionError(conn, "persoanlized ", fromMessage.principal,
784784
userAndRoles, notebookAuthorization.getOwners(noteId));
785785
return;
786786
}
@@ -790,7 +790,7 @@ private void updatePersonalizedMode(NotebookSocket conn, HashSet<String> userAnd
790790
note.setPersonalizedMode(isPersonalized);
791791
AuthenticationInfo subject = new AuthenticationInfo(fromMessage.principal);
792792
note.persist(subject);
793-
sendNote(conn, userAndRoles, notebook, fromMessage);
793+
broadcastNote(note);
794794
}
795795
}
796796

zeppelin-web/src/app/notebook/notebook.controller.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,8 @@
927927

928928
if ($scope.note === null) {
929929
$scope.note = note;
930+
} else {
931+
$scope.note.config.personalizedMode = note.config.personalizedMode;
930932
}
931933
initializeLookAndFeel();
932934
//open interpreter binding setting when there're none selected

0 commit comments

Comments
 (0)