Checking deployment role in the controller.