MCPcopy Index your code
hub / github.com/coder/coder / InsertGroupMember

Method InsertGroupMember

coderd/database/dbauthz/dbauthz.go:5618–5623  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertGroupMemberParams)

Source from the content-addressed store, hash-verified

5616}
5617
5618func (q *querier) InsertGroupMember(ctx context.Context, arg database.InsertGroupMemberParams) error {
5619 fetch := func(ctx context.Context, arg database.InsertGroupMemberParams) (database.Group, error) {
5620 return q.db.GetGroupByID(ctx, arg.GroupID)
5621 }
5622 return update(q.log, q.auth, fetch, q.db.InsertGroupMember)(ctx, arg)
5623}
5624
5625func (q *querier) InsertInboxNotification(ctx context.Context, arg database.InsertInboxNotificationParams) (database.InboxNotification, error) {
5626 return insert(q.log, q.auth, rbac.ResourceInboxNotification.WithOwner(arg.UserID.String()), q.db.InsertInboxNotification)(ctx, arg)

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70
GetGroupByIDMethod · 0.65

Tested by

no test coverage detected