func (u *User) HasRole() bool {
	if u != nil && u.Role != nil {
		return true
	}

	return false
}
func (u *User) HasRole() bool {
	if u != nil && u.Role != nil {
		return true
	}

	return false
}
func ( u * User ) HasRole ( ) bool { if u != nil && u . Role != nil { return true } return false }
// HasRole returns a boolean if a field has been set.
HasRole returns a boolean if a field has been set .