SQLStore: Make addOrgUser private (#59142)

make addOrgUser private
This commit is contained in:
Serge Zaitsev
2022-11-22 17:02:39 +00:00
committed by GitHub
parent de99ce139c
commit b875ca08c6
7 changed files with 32 additions and 25 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/grafana/grafana/pkg/services/user"
)
func (ss *SQLStore) AddOrgUser(ctx context.Context, cmd *models.AddOrgUserCommand) error {
func (ss *SQLStore) addOrgUser(ctx context.Context, cmd *models.AddOrgUserCommand) error {
return ss.WithTransactionalDbSession(ctx, func(sess *DBSession) error {
// check if user exists
var usr user.User