Commit 391d9706 authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Feat : force to select a role for User

parent bf605ef9
......@@ -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");
const response = await fetch("/api/admin/users/" + id_field.value, {
method: method,
headers: new Headers({
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment