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

User listing errors when deleting a role #2341

Closed
mefutu01 opened this issue Sep 24, 2023 · 0 comments · Fixed by #2372
Closed

User listing errors when deleting a role #2341

mefutu01 opened this issue Sep 24, 2023 · 0 comments · Fixed by #2372

Comments

@mefutu01
Copy link

Description

After enabling groups and roles. I created some users with standard roles. Then, I thought I needed completely different user role settings and deleted the ones I didn't need. Some of the users ended up with "irrelevant" roles.

After, I try to change the user on the /users//edit page. I can't do it, because of an error
Call to a member function permissions() on null.

Steps to reproduce

Create a user with a role. Delete a role. Try to load the user listing.

Expected result

I expect that not having a remote role will not throw an error

Actual result

message 'Attempt to read property "name" on null' exception "ErrorException" file "src\\Http\\Controllers\\Admin\\UserController.php" line 143

Versions

Twill version: 3.0.2
Laravel version: 9.52.15
PHP version: 8.1.9
Database engine: "PostgreSQL 14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant