isPermissionError checks if an error is related to permissions/authentication.
(err error)
| 288 | |
| 289 | // isPermissionError checks if an error is related to permissions/authentication. |
| 290 | func isPermissionError(err error) bool { |
| 291 | if err == nil { |
| 292 | return false |
| 293 | } |
| 294 | return isPermissionErrorStr(err.Error()) |
| 295 | } |
| 296 | |
| 297 | type auditRunConfig struct { |
| 298 | runID int64 |