mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
move other errors to utils package
This commit is contained in:
@@ -477,7 +477,7 @@ func (u *User) getForbiddenSFTPSelfUsers(username string) ([]string, error) {
|
||||
}
|
||||
return forbiddens, nil
|
||||
}
|
||||
if _, ok := err.(*RecordNotFoundError); !ok {
|
||||
if _, ok := err.(*utils.RecordNotFoundError); !ok {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user