Implementation of lock for admin pages.