code: func (c *CredentialsStore) HasPermRequest(b BasicAuther, perm string) bool {
  	username, _, ok := b.BasicAuth()
  	if !ok {
  		return false
  	}
  	return c.HasPerm(username, perm)
  }
docs: // HasPermRequest returns true if the username returned by b has the givem perm.
  // It does not perform any password checking, but if there is no username
  // in the request, it returns false.