edit role checking