Added server-side authentication for 'master' role.