test
This commit is contained in:
parent
3a987cf4be
commit
c879ed72bb
@ -37,6 +37,12 @@ const AdminUsersPage = () => {
|
||||
is_superuser: false,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (!currentUser) {
|
||||
window.location.href = '/login';
|
||||
}
|
||||
}, [currentUser]);
|
||||
|
||||
const generateInviteLink = async () => {
|
||||
try {
|
||||
setError('');
|
||||
@ -102,7 +108,6 @@ const AdminUsersPage = () => {
|
||||
|
||||
if (String(userId) === String(getUserId(currentUser))) {
|
||||
logout();
|
||||
window.location.href = '/login';
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user