simone960's picture

I have created a role and deleted. But not sure how it happened that when I check later there's a an empty role under the Roles page. I can't delete the role with the "DELETE ROLE" button no matter how I tried. I wonder how can I delete it manually whether from the Database or other way. Not sure how to debug on this really. Please help. Thanks.

 

Accepted answer

I had a similar empty role appear because of faulty code in a module (I can't remember which one off the top of my head) and I had to delete the file from the config directory manually to get rid of it. Be careful when deleting from that folder if you do try that, and take a backup first.

Comments

I had a similar empty role appear because of faulty code in a module (I can't remember which one off the top of my head) and I had to delete the file from the config directory manually to get rid of it. Be careful when deleting from that folder if you do try that, and take a backup first.

simone960's picture

Thanks! Indeed there's a user.role..json file in the config directory without indicating the role. Once the file is deleted the empty role no longer displayed. Great thanks !

{     "_config_name": "user.role.",     "name": "",     "label": "",     "weight": 0,     "permissions": [         "view files"     ] }