Skip to main content
Start of main content.
Mohit Aghera headshot

Mohit Aghera

Senior Developer

Location
India
Drupal.org
mohit_aghera
Social
@mohit_rocks

Mohit has more than a decade of experience building and architecting Drupal websites. Comfortable on challenging projects, he brings a structured approach to system architecture and application design, with a consistent record of high quality code throughout his career.

At PreviousNext, Mohit works as a Senior Developer, contributing expertise in architecture, backend development and quality control. He is an Acquia Certified Drupal Developer, reflecting his commitment to staying at the top of his field.

My blog posts

An abstract image of the UX process

How we built protected search in Drupal using OpenSearch

Recently, we worked on a project for Catholic Schools NSW, where one of the key requirements was controlling access to content. Some pages and resources needed to be available only to authenticated users, while the rest of the site remained publicly accessible. 

That requirement didn’t stop at the website itself, but it also extended to search. Authenticated users needed to see protected content in their results, while anonymous visitors should only see public content. 

This presented an interesting challenge. In a decoupled architecture, search doesn’t automatically inherit Drupal’s access controls, so we needed a way to make search permission-aware without compromising performance. We used OpenSearch to build a solution that ensured users only saw content they were authorised to access, while keeping the search experience seamless. 

by mohit.aghera /