feat(admin): rebuild the list of roles and confirm deleting a role in a dialog
The roles are a table with the level, the permissions and the holders, which lead to the list of users filtered by the role. A row has buttons to edit and to delete; a role above the visitor's own shows a lock. Deleting opens pages/confirm-dialog in the modal and the page of its own without the script; role-delete-confirm.twig is gone.
fix(admin): remove the roles, identities, sessions and reset tokens of a deleted account
The authentication tables have no foreign keys, so UserClean::removeUser() deletes the rows of user_roles, user_identities, auth_sessions and password_reset_tokens by hand. The audit log in auth_events is kept.
test: change a setting and post a form through the harness
FunctionalTestCase::withConfig() changes settings for one test and puts them back however it ends, and postForm() posts a form as a signed-in visitor. They replace the copies of both across the functional tests.
test(admin): cover the filters, the sorting and the numbers of the list of users
The search by address, the role, activity and registration filters, the sorting, a page beyond the end, the hidden e-mail and the origin in the rows, and the numbers above the list agreeing with the lists they open.
fix(admin): keep the staff out of the cleanup of inactive users
The cleanup removed every account registered half a year ago, not seen for five months and with next to nothing written, administrators and moderators included. An account holding a role in force is no longer one of them.
test(admin): cover the rules of editing an account and of moderating registrations
Editing: a taken e-mail, the notes without the permission to read them, an editor banned from the site, a short password, the password of somebody else without the permission, the settings of a peer. Registrations: approving all, removing by address and all, and access to the panel being enough to moderate them.
fix(admin): close the deletion page of an account to the page of the account
It closed to the profile of the site, which belongs to a module that may be switched off. The page also gets the breadcrumbs of the other pages of the account.
Мы используем файлы cookie и сервис веб-аналитики Яндекс.Метрика. Используя сайт, вы соглашаетесь с Политикой использования cookie-файлов и даёте согласие на обработку данных сервисом веб-аналитики Яндекс.Метрика в соответствии с Политикой обработки персональных данных. Cookies можно отключить в любой момент в настройках вашего браузера.