Attached Resources Cancancan Routes

I got a controller named FileRecord

, it can be accessed from two different paths

From a user with administrator rights

/customers/:customer_id/record_types/:record_type_id/file_records

      

From a regular user

record_types/:record_type_id/file_records

      

Is there a way to block admin access to a regular user route and vice versa?

thank

+3


source to share





All Articles