fiddle with instance display

This commit is contained in:
tsmethurst
2021-06-23 16:32:21 +02:00
parent 69000ed68e
commit 7d2bfd8537
7 changed files with 24 additions and 12 deletions

View File

@ -90,7 +90,7 @@ func (p *processor) InstancePatch(form *apimodel.InstanceSettingsUpdateRequest)
return nil, gtserror.NewErrorBadRequest(err, err.Error())
}
// contact account user must be admin or moderator otherwise what's the point of contacting them
if !contactUser.Admin || !contactUser.Moderator {
if !contactUser.Admin && !contactUser.Moderator {
err := fmt.Errorf("user of selected contact account %s is neither admin nor moderator", contactAccount.Username)
return nil, gtserror.NewErrorBadRequest(err, err.Error())
}