MCPcopy Create free account
hub / github.com/gogs/gogs / IsErrUserHasOrgs

Function IsErrUserHasOrgs

internal/database/users.go:382–384  ·  view source on GitHub ↗

IsErrUserHasOrgs returns true if the underlying error has the type ErrUserHasOrgs.

(err error)

Source from the content-addressed store, hash-verified

380// IsErrUserHasOrgs returns true if the underlying error has the type
381// ErrUserHasOrgs.
382func IsErrUserHasOrgs(err error) bool {
383 return errors.As(err, &ErrUserHasOrgs{})
384}
385
386func (err ErrUserHasOrgs) Error() string {
387 return fmt.Sprintf("user still has organization membership: %v", err.args)

Callers 4

SettingsDeleteFunction · 0.92
DeleteUserFunction · 0.92
DeleteUserFunction · 0.92
DeleteInactivatedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected