code: func (r *Repository) GetPermissions() map[string]bool {
  	if r == nil || r.Permissions == nil {
  		return map[string]bool{}
  	}
  	return *r.Permissions
  }
docs: // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise.