This commit is contained in:
Louis Mazin 2026-09-21 13:39:27 +02:00
parent 3a987cf4be
commit c879ed72bb

View File

@ -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;
}