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

Unable to reassign entries while deleting member #3157

Closed
jelle-burodeng opened this issue Mar 24, 2023 · 5 comments · Fixed by #3188
Closed

Unable to reassign entries while deleting member #3157

jelle-burodeng opened this issue Mar 24, 2023 · 5 comments · Fixed by #3188
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@jelle-burodeng
Copy link

I have a site with 3 members. I need to delete 1 of them. I've set all members to show in the author list.
When i select the member ad hit delete, the modal shows "No members found"

PHP Version 8.1.15
EE 7.2.11

@intoeetive
Copy link
Contributor

@jelle-burodeng can you add the screenshot of the error that you're seeing?

@jelle-burodeng
Copy link
Author

screenshot-error-reassign-entries

@intoeetive
Copy link
Contributor

And the other members that are authors, are those marked as authors individually - or as part of role that they belong to? Also, are you by chance trying to delete the only superadmin here?

@jelle-burodeng
Copy link
Author

OK. found something that might clarify
This was a former super admin, whose roles we changed to "banned".
When we set the roles back as Super Admin we did get the correct modal with an author list.
So now i changed him to "member" and the modal is empty again. Same when i give him a custom role. It looks like i can only reassign entries when that member has a role that is the same as the original role (SA in this case)

@intoeetive
Copy link
Contributor

I can see where it fails. It's trying to get the list of members from the member's own role making (obviously incorrect) assumption that it has authorship permissions - instead of fetching actual authors.

Accepting as bug. Thank you!

@intoeetive intoeetive added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Mar 31, 2023
intoeetive added a commit that referenced this issue Mar 31, 2023
intoeetive added a commit that referenced this issue Mar 31, 2023
intoeetive added a commit that referenced this issue Apr 11, 2023
intoeetive added a commit that referenced this issue Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
2 participants