Skip to content
Snippets Groups Projects
Commit a91f3c3d authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Public server config no username

Change-Id: Ic2c5e799bf606ad7a85c2add3ad40541857bec95
parent 384c0dff
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,7 @@ export default function ServerParameters(props) {
auth.installed = true;
auth.authenticated = true;
auth.admin = true;
window.localStorage.setItem('scope', 'true');
auth.checkDirectoryType(() => {
history.push("/admin/users");
});
......
......@@ -189,13 +189,13 @@ export default function Users(props) {
const handleChangePage = (e, page) => {
searchUsers(searchValue, page);
};
if (!auth.hasAdminScope()) {
if (!auth.hasAdminScope() && auth.getUsername() != "") {
return (
<div>
<UserProfile username={auth.getUsername()} />
</div>
);
} else if (selectedProfile && auth.hasAdminScope()) {
} else if (selectedProfile && auth.hasAdminScope() && selectedUsername != "") {
return (
<div>
<UserProfile username={selectedUsername} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment