feat: User Groups admin screen with the users count and privileged codes protected

- controller golem15.user.usergroups behind golem15.users.access_groups
- list with users_count from the list's own query; form with the checkbox
  permission editor stored in user_groups.permissions
- creating a group with a privileged code, changing a code to or from one and
  deleting a privileged group need golem15.users.manage_privileged_groups
- a group delete removes its users_groups rows in the same transaction
- UserGroup gains Fillable, Rules and the read-only UsersCount; PermissionSet.Text
- TestAdminGroups and the D-06 matrix in TestAdminPrivilegedGroups
This commit is contained in:
Jakub Zych
2026-10-05 13:52:26 +02:00
parent 9611708792
commit a3992879db
15 changed files with 987 additions and 1 deletions

View File

@@ -78,6 +78,22 @@ user:
permissions_tab: Uprawnienia
group:
label: Grupa
id: ID
name: Nazwa
code: Kod
code_comment: Wpisz unikalny kod służący do identyfikacji tej grupy.
code_invalid: Kod może zawierać tylko litery, cyfry, myślniki i podkreślenia.
description_field: Opis
created_at: Utworzona
users_count: Użytkownicy
groups:
all_groups: Grupy użytkowników
menu_label: Grupy
list_title: Zarządzaj grupami
new_group: Nowa grupa
list_empty: Brak grup użytkowników. Utwórz pierwszą przyciskiem Nowa grupa.
delete_confirm: Czy na pewno chcesz usunąć tę grupę?
privileged_forbidden: Nie masz uprawnień do tworzenia, zmiany kodu ani usuwania grup uprzywilejowanych. Nic nie zostało zapisane.
organisation:
label: Organizacja
empty_organisation: — Brak organizacji —