Add a check that checks which permission is needed.