Skip to content
Snippets Groups Projects
Commit 391d9706 authored by Alexis Poyen's avatar Alexis Poyen
Browse files

Feat : force to select a role for User

parent bf605ef9
No related branches found
No related tags found
No related merge requests found
......@@ -223,6 +223,10 @@ class HandleUser {
else method = "POST";
try {
if(role_field.value == ""){
Messages.Show("is-warning", "Veuillez choisir un rôle pour l'utilisateur");
return;
}
const response = await fetch("/api/admin/users/" + id_field.value, {
method: method,
headers: new Headers({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment