fix: handle private pending support relationships
Deploy olons-server production / deploy (push) Successful in 3m23s
Deploy olons-server production / deploy (push) Successful in 3m23s
This commit is contained in:
@@ -388,6 +388,11 @@ func IsConflict(err error) bool {
|
||||
return errors.As(err, &target) && target.Status == http.StatusConflict
|
||||
}
|
||||
|
||||
func IsPermissionDenied(err error) bool {
|
||||
var target *Error
|
||||
return errors.As(err, &target) && target.Status == http.StatusForbidden
|
||||
}
|
||||
|
||||
// IsAuthenticationFailed reports whether the IM server rejected user
|
||||
// credentials. Callers may use this to repair credentials which have drifted
|
||||
// from the local encrypted copy, while leaving transport failures untouched.
|
||||
|
||||
Reference in New Issue
Block a user