menu authorities

This commit is contained in:
Tóth Richárd
2019-07-26 16:03:01 +02:00
parent 2c663d7ed1
commit 13bf590aa0
15 changed files with 507 additions and 158 deletions

View File

@@ -187,7 +187,7 @@ if (isset($_POST['action'])) {
$psw = "null";
}
$new_coach_id = user::create_user($_POST['ua_name'], $psw);
$new_coach_id = user::create_user($_POST['ua_name'], $psw, $_POST['authorities']);
log::register('new_coach', $new_coach_id);
header("Location: /admin/coaches");
break;
@@ -200,9 +200,9 @@ if (isset($_POST['action'])) {
$psw = "-1"; //ez jelzi h nem szabad updatelni
}
user::update_user($_POST['ua_name'], $psw, isset($_POST['ua_admin']), $_POST['ua_id']);
user::update_user($_POST['ua_name'], $psw, isset($_POST['ua_admin']), $_POST['ua_id'], $_POST['authorities']);
log::register('update_coach', $_POST['ua_id']);
header("Location: /admin/coaches");
header("Location: /admin/coaches/".$_POST['ua_id']);
break;
case 'shirt_create':
# póló létrehozása