6 Commits

Author SHA1 Message Date
bfb3ae4b6e Merge pull request 'user-upd' (#1180) from user-upd into staging
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
Reviewed-on: #1180
2026-01-08 20:15:41 +01:00
88a3e5f2d0 Merge pull request 'Merge pull request 'force an action on important notifications' (#1177) from force-action-on-important-notifications into main' (#1178) from new-sort-option into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 17m44s
CI/CD Pipeline / deploy-staging (push) Successful in 7m49s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #1178
2026-01-05 13:09:12 +01:00
32c250536d Merge pull request 'force-action-on-important-notifications' (#1176) from force-action-on-important-notifications into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 17m51s
CI/CD Pipeline / deploy-staging (push) Successful in 7m56s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #1176
2026-01-03 22:11:55 +01:00
b9d0e2a2dc Merge pull request 'show-full-stats' (#1172) from show-full-stats into staging
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
Reviewed-on: #1172
2026-01-03 21:49:14 +01:00
b597898bdf Merge pull request 'manual-deploy' (#1174) from manual-deploy into staging
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
Reviewed-on: #1174
2026-01-03 21:43:02 +01:00
e90555214a Merge pull request 'No need to pay for deleted boats' (#1169) from handle-deleted-boats into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 19m20s
CI/CD Pipeline / deploy-staging (push) Successful in 26m29s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #1169
2026-01-03 14:04:39 +01:00
2 changed files with 3 additions and 8 deletions

View File

@@ -64,7 +64,6 @@ async fn index(
let user: User = user.into_inner();
let allowed_to_edit = ManageUserUser::new(db, &user).await.is_some();
let is_admin = AdminUser::new(db, &user).await.is_some();
let users: Vec<UserWithRolesAndMembershipPdf> = join_all(user_futures).await;
let financial = Role::all_cluster(db, "financial").await;
@@ -77,7 +76,6 @@ async fn index(
context.insert("flash", &msg.into_inner());
}
context.insert("allowed_to_edit", &allowed_to_edit);
context.insert("is_admin", &is_admin);
context.insert("users", &users);
context.insert("roles", &roles);
context.insert("financial", &financial);
@@ -112,7 +110,6 @@ async fn index_admin(
context.insert("flash", &msg.into_inner());
}
context.insert("allowed_to_edit", &allowed_to_edit);
context.insert("is_admin", &true);
context.insert("users", &users);
context.insert("roles", &roles);
context.insert("financial", &financial);

View File

@@ -4,11 +4,9 @@
<div class="max-w-screen-lg w-full">
<h1 class="h1">Users</h1>
{% if allowed_to_edit %}
{% if is_admin %}
<div class="mt-5 flex gap-3">
<a href="/admin/user/merge" class="btn btn-dark">Benutzer zusammenführen</a>
</div>
{% endif %}
<div class="mt-5 flex gap-3">
<a href="/admin/user/merge" class="btn btn-dark">Benutzer zusammenführen</a>
</div>
<details class="mt-5 bg-gray-200 dark:bg-primary-600 p-3 rounded-md">
<summary class="px-3 cursor-pointer text-md font-bold text-primary-950 dark:text-white">
Neue Person hinzufügen