Skip to content

Commit

Permalink
lxd: Update permission handling on upsert.
Browse files Browse the repository at this point in the history
With the change to `SetAuthGroupPermissions`, we no longer need to set
the group ID in each permission in the slice.

Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Sep 30, 2024
1 parent 143717c commit aef96d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lxd/auth_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,6 @@ func upsertPermissions(ctx context.Context, tx *sql.Tx, groupID int, permissions
}

authGroupPermissions = append(authGroupPermissions, dbCluster.Permission{
GroupID: groupID,
Entitlement: entitlement,
EntityType: entityType,
EntityID: entityRef.EntityID,
Expand Down

0 comments on commit aef96d0

Please sign in to comment.