Refactored using user role constants to check security