how can I enable adding a relation resource in the view page of the main resource
I have a MaintenanceRequestResource that is linked to MaintenanceAttachmentRelationManage
as an admin I can access both view and edit page of the MaintenanceRequestResource
users only have access to view page
I dont think it is a permission issue as even admin can see the "add new attachement" in view page
2 Replies
I need the same, but haven't spent much time on it yet. From the research I did do, it seems there's a readOnly flag on RelationshipManagers
Thanks it worked ,
public function isReadOnly(): bool
{
return false;
}
funny thing that I actually did that 8 months ago (for another model),
I think because I tied AI and it sent me into a rabbit hole 😦