mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
check if noteId exists in session or take it from fromMessage
This commit is contained in:
parent
8b8c2f9741
commit
947be70b41
1 changed files with 4 additions and 1 deletions
|
|
@ -1185,7 +1185,10 @@ public class NotebookServer extends WebSocketServlet
|
|||
|
||||
Map<String, Object> params = (Map<String, Object>) fromMessage.get("params");
|
||||
Map<String, Object> config = (Map<String, Object>) fromMessage.get("config");
|
||||
String noteId = (String) fromMessage.get("noteId");
|
||||
String noteId = getOpenNoteId(conn);
|
||||
if (noteId == null) {
|
||||
noteId = (String) fromMessage.get("noteId");
|
||||
}
|
||||
|
||||
if (!hasParagraphWriterPermission(conn, notebook, noteId,
|
||||
userAndRoles, fromMessage.principal, "write")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue