Skip to content

Commit

Permalink
fix(check-permission): add id to system resource
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh committed May 10, 2022
1 parent 247a7b5 commit 14dd3c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/permission/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ func (c CheckService) CheckAuthz(ctx context.Context, resource model.Resource, a
isSystemNS := utils.IsSystemNS(resource)
fetchedResource := resource

if !isSystemNS {
if isSystemNS {
fetchedResource.Idxa = resource.Urn
} else {
fetchedResource, err = c.ResourceStore.GetResourceByURN(ctx, resource.Urn)
if err != nil {
return false, err
Expand Down

0 comments on commit 14dd3c3

Please sign in to comment.