Checks whether this role object contains valid data; if not, returns an error.
()
| 355 | |
| 356 | // Checks whether this role object contains valid data; if not, returns an error. |
| 357 | func (role *roleImpl) validate() error { |
| 358 | if !IsValidPrincipalName(role.Name_) { |
| 359 | return base.HTTPErrorf(http.StatusBadRequest, "Invalid name %q", role.Name_) |
| 360 | } |
| 361 | return role.ExplicitChannels_.Validate() |
| 362 | } |
| 363 | |
| 364 | //////// CHANNEL AUTHORIZATION: |
| 365 |
no test coverage detected