I got a controller named FileRecord
, it can be accessed from two different paths
From a User with Role Admin
/customers/:customer_id/record_types/:record_type_id/file_records
From a Common User
record_types/:record_type_id/file_records
Is there a way to block access to admin to the route of the common user and viceversa?
Thanks