mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Give writer permission to clear output
This commit is contained in:
parent
dea3ef6979
commit
7eb352159a
1 changed files with 1 additions and 1 deletions
|
|
@ -792,7 +792,7 @@ public class NotebookServer extends WebSocketServlet implements
|
|||
}
|
||||
Note note = notebook.getNote(noteId);
|
||||
NotebookAuthorization notebookAuthorization = notebook.getNotebookAuthorization();
|
||||
if (!notebookAuthorization.isOwner(noteId, userAndRoles)) {
|
||||
if (!notebookAuthorization.isWriter(noteId, userAndRoles)) {
|
||||
permissionError(conn, "clear output", fromMessage.principal,
|
||||
userAndRoles, notebookAuthorization.getOwners(noteId));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue