code: func (ap AccountPermissions) HasRole(role string) bool {
  	role = string(binary.RightPadBytes([]byte(role), 32))
  	for _, r := range ap.Roles {
  		if r == role {
  			return true
  		}
  	}
  	return false
  }
docs: // Returns true if the role is found