Security service userHasRole bug fix