mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
bugfix: pass userAndRoles instead of roles
This commit is contained in:
parent
85be8b7cce
commit
d7df363cd2
1 changed files with 3 additions and 1 deletions
|
|
@ -257,8 +257,10 @@ public class NotebookRestApi {
|
|||
@ZeppelinApi
|
||||
public Response getNoteList() throws IOException {
|
||||
AuthenticationInfo subject = new AuthenticationInfo(SecurityUtils.getPrincipal());
|
||||
HashSet<String> userAndRoles = SecurityUtils.getRoles();
|
||||
userAndRoles.add(subject.getUser());
|
||||
List<Map<String, String>> notesInfo = notebookServer.generateNotesInfo(false, subject,
|
||||
SecurityUtils.getRoles());
|
||||
userAndRoles);
|
||||
return new JsonResponse<>(Status.OK, "", notesInfo).build();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue