Skip to content

Commit

Permalink
Actionsets: fix remove printf (grafana#87439)
Browse files Browse the repository at this point in the history
fix: remove printf
  • Loading branch information
eleijonmarck authored May 7, 2024
1 parent 0239cf8 commit 6b218b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/services/accesscontrol/resourcepermissions/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func (s *store) setUserResourcePermission(
cmd SetResourcePermissionCommand,
hook UserResourceHookFunc,
) (*accesscontrol.ResourcePermission, error) {
fmt.Printf("setting user resource permission %v\n", cmd)
permission, err := s.setResourcePermission(sess, orgID, accesscontrol.ManagedUserRoleName(user.ID), s.userAdder(sess, orgID, user.ID), cmd)
if err != nil {
return nil, err
Expand Down Expand Up @@ -238,7 +237,6 @@ type roleAdder func(roleID int64) error
func (s *store) setResourcePermission(
sess *db.Session, orgID int64, roleName string, adder roleAdder, cmd SetResourcePermissionCommand,
) (*accesscontrol.ResourcePermission, error) {
fmt.Printf("setting resource permission %v\n", cmd)
role, err := s.getOrCreateManagedRole(sess, orgID, roleName, adder)
if err != nil {
return nil, err
Expand Down Expand Up @@ -778,7 +776,6 @@ func (s *InMemoryActionSets) StoreActionSet(resource, permission string, actions
Actions: actions,
}
s.actionSets[actionSet.Action] = actions
fmt.Printf("stored action set actionname %s\n", s.actionSets)
}

// GetActionSetName function creates an action set from a list of actions and stores it inmemory.
Expand Down

0 comments on commit 6b218b1

Please sign in to comment.