fixed check that was looking for incorrect role