Skip to content
Snippets Groups Projects
Verified Commit d8f6871c authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: js-beautified caosdb.js

parent 7f02d11b
No related branches found
No related tags found
No related merge requests found
...@@ -69,8 +69,7 @@ function getUserRealm() { ...@@ -69,8 +69,7 @@ function getUserRealm() {
* @return Array containing the roles of the user. * @return Array containing the roles of the user.
*/ */
function getUserRoles() { function getUserRoles() {
return Array.from(document.getElementsByClassName("caosdb-user-role") return Array.from(document.getElementsByClassName("caosdb-user-role")).map(el => el.innerText);
).map(el => el.innerText);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment