mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Adress review and fix typos
This commit is contained in:
parent
eacfa8eee2
commit
db0c39c4a1
1 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ public class NotebookRestApi {
|
|||
userAndRoles.add(principal);
|
||||
userAndRoles.addAll(roles);
|
||||
|
||||
checkIfUserCanWrite(noteId,
|
||||
checkIfUserIsOwner(noteId,
|
||||
ownerPermissionError(userAndRoles, notebookAuthorization.getOwners(noteId)));
|
||||
|
||||
HashMap<String, HashSet<String>> permMap =
|
||||
|
|
@ -502,7 +502,7 @@ public class NotebookRestApi {
|
|||
|
||||
Note note = notebook.getNote(noteId);
|
||||
checkIfNoteIsNotNull(note);
|
||||
checkIfUserIsOwner(noteId,
|
||||
checkIfUserCanRead(noteId,
|
||||
"Insufficient privileges you cannot remove paragraph from this note");
|
||||
|
||||
Paragraph p = note.getParagraph(paragraphId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue