The Conditionnal Maintenance Mode for WordPress plugin allows the administrator to enable or disable maintenance mode for selected user roles. The administrator can also customize the maintenance message that will be displayed to users who don't have the necessary roles.
This plugin is useful when you're carrying out updates or maintenance on your website and want to restrict access to certain users while you work.