mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:52:13 +08:00
Provisioning: Remove warnings for valid usage (#104555)
This commit is contained in:

committed by
GitHub

parent
9f048b5127
commit
72ea92f275
@ -768,7 +768,7 @@ func (s *Service) CreateLegacy(ctx context.Context, cmd *folder.CreateFolderComm
|
||||
var userID int64
|
||||
if id, err := identity.UserIdentifier(cmd.SignedInUser.GetID()); err == nil {
|
||||
userID = id
|
||||
} else {
|
||||
} else if !identity.IsServiceIdentity(ctx) {
|
||||
s.log.Warn("User does not belong to a user or service account namespace, using 0 as user ID", "id", cmd.SignedInUser.GetID())
|
||||
}
|
||||
|
||||
@ -918,7 +918,7 @@ func (s *Service) legacyUpdate(ctx context.Context, cmd *folder.UpdateFolderComm
|
||||
var userID int64
|
||||
if id, err := identity.UserIdentifier(cmd.SignedInUser.GetID()); err == nil {
|
||||
userID = id
|
||||
} else {
|
||||
} else if !identity.IsServiceIdentity(ctx) {
|
||||
s.log.Warn("User does not belong to a user or service account namespace, using 0 as user ID", "id", cmd.SignedInUser.GetID())
|
||||
}
|
||||
|
||||
@ -1441,7 +1441,7 @@ func (s *Service) buildSaveDashboardCommand(ctx context.Context, dto *dashboards
|
||||
var userID int64
|
||||
if id, err := identity.UserIdentifier(dto.User.GetID()); err == nil {
|
||||
userID = id
|
||||
} else {
|
||||
} else if !identity.IsServiceIdentity(ctx) {
|
||||
s.log.Warn("User does not belong to a user or service account namespace, using 0 as user ID", "id", dto.User.GetID())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user