Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Administrators can't edit their own user #7059

Closed
de-es opened this issue Mar 25, 2024 · 1 comment · Fixed by #7064
Closed

Administrators can't edit their own user #7059

de-es opened this issue Mar 25, 2024 · 1 comment · Fixed by #7064
Assignees
Labels
Milestone

Comments

@de-es
Copy link
Contributor

de-es commented Mar 25, 2024

Affected version(s)

5.3.3

Description

Administratoren können ihren eigenen Datensatz nicht bearbeiten/speichern, wenn sie ihn über Account-Manager -> Users -> Edit bearbeiten wollen:

Not enough permissions to update [Subject: Source: tl_user; ID: 1].

Über das Profil funktioniert es natürlich weiterhin.

Zum Nachvollziehen: Kevin Jones in der Demo öffnen und zB auf Save gehen.

Bug oder known limitation?

@aschempp
Copy link
Member

see #7064

leofeyer pushed a commit that referenced this issue Apr 9, 2024
…ts themselves (see #7064)

Description
-----------

Fixes #7059

This was actually an inconsistency in all previous Contao versions. The admin user is not allowed to disable itself, because you could disable the only admin account etc. The new user voter prevents that, which correctly disables the toggle operation automatically. But since the fields were still present in the UI, the data could not be stored.

Commits
-------

39b9f2a Disallow disable,start,stop fields for admin on itself
leofeyer pushed a commit to contao/core-bundle that referenced this issue Apr 9, 2024
…ts themselves (see #7064)

Description
-----------

Fixes contao/contao#7059

This was actually an inconsistency in all previous Contao versions. The admin user is not allowed to disable itself, because you could disable the only admin account etc. The new user voter prevents that, which correctly disables the toggle operation automatically. But since the fields were still present in the UI, the data could not be stored.

Commits
-------

39b9f2a9 Disallow disable,start,stop fields for admin on itself
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants