F
Filament5mo ago
nowak

Unable to edit Resource in Resource table

I have a GroupResource, which I used to be able to edit, but now the edit button in the resource table no longer exists. I have attached my app/Filament/Resources/GroupResource.php. I have filament-shield installed as well, but I also have a UserResource, which I have no issues with editing. Any debugging I could make to figure out what could be causing this? I have attached a screenshot of the resource table as well.
Solution:
Sounds like you’re missing a policy for ‘Group’
Jump to solution
4 Replies
nowak
nowak5mo ago
I am also unable to edit the GroupsRelationManager relations on my UserResource, And I am thinking this must be directly related. I have attached the GroupsRelationManager.php I am realising that this might be unrelated to filament, but what requirements should there be for editing of resources to work?
Solution
awcodes
awcodes5mo ago
Sounds like you’re missing a policy for ‘Group’
nowak
nowak5mo ago
Where would a policy for 'Group' typically exist? I used to be able to edit my groups in GroupResource, so I am a little confused about why this would be an issue now? Thank you! You pointed me in the right direction. I have a GroupPolicy that is separate from my filament-shield/spatie permission setup, only allowing group members with a certain role to edit groups.
Gabb
Gabb5mo ago
hi having problem on my project i have LAMP setup server and having issue running filament project on public #403