feat: link and unlink an administrator's frontend account on the Administrators screen

- golem15.users.manage_backend_links (no default role), en and pl labels
- record actions on summercms.cabana.users: link_frontend_account asks for
  the frontend user's email (exact, case-insensitive, active users only),
  records linked_by and fires the link events; unlink_frontend_account
  (danger) removes the link
- a taken or unknown account answers 422 on the prompt
This commit is contained in:
Jakub Zych
2026-10-23 12:14:21 +02:00
parent 0f545f5c81
commit 6f1cb1a774
8 changed files with 307 additions and 9 deletions

View File

@@ -15,6 +15,11 @@ import (
// good.
const PermissionManagePrivilegedGroups = "golem15.users.manage_privileged_groups"
// PermissionManageBackendLinks is the backend permission an administrator
// needs to link a frontend account to another administrator, or to unlink
// one, on the Administrators screen. No role has it by default.
const PermissionManageBackendLinks = "golem15.users.manage_backend_links"
// privilegedGroupsKey is the config list of privileged group codes.
const privilegedGroupsKey = "golem15.user.privileged_groups"