(ctx context.Context, userID string, superuser bool)
| 2348 | } |
| 2349 | |
| 2350 | func (c *connection) UpdateSuperuser(ctx context.Context, userID string, superuser bool) error { |
| 2351 | res, err := c.getDB(ctx).ExecContext(ctx, `UPDATE users SET superuser=$2, updated_on=now() WHERE id=$1`, userID, superuser) |
| 2352 | return checkUpdateRow("superuser", res, err) |
| 2353 | } |
| 2354 | |
| 2355 | func (c *connection) InsertProjectMemberUser(ctx context.Context, projectID, userID, roleID string, restrictResources bool, resources []database.ResourceName) error { |
| 2356 | resJSON, err := marshalResourceNames(resources) |
nothing calls this directly
no test coverage detected