From 2ea4138f3ae7324cdbd8a53dddb68c5327ce81bb Mon Sep 17 00:00:00 2001 From: rainzm Date: Thu, 3 Sep 2020 11:04:38 +0800 Subject: [PATCH] fix(notify): Allow user list receivers --- pkg/notify/models/receiver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/notify/models/receiver.go b/pkg/notify/models/receiver.go index 20848373f8..75d82754e8 100644 --- a/pkg/notify/models/receiver.go +++ b/pkg/notify/models/receiver.go @@ -91,8 +91,8 @@ type SReceiver struct { db.SDomainizedResourceBase db.SEnabledResourceBase - Email string `width:"64" nullable:"false" create:"optional" update:"user" get:"user" list:"admin"` - Mobile string `width:"16" nullable:"false" create:"optional" update:"user" get:"user" list:"admin"` + Email string `width:"64" nullable:"false" create:"optional" update:"user" get:"user" list:"user"` + Mobile string `width:"16" nullable:"false" create:"optional" update:"user" get:"user" list:"user"` // swagger:ignore EnabledEmail tristate.TriState `nullable:"false" default:"false" update:"user"`