-
Notifications
You must be signed in to change notification settings - Fork 96
Conversation
@@ -666,7 +666,7 @@ func (h *Frontend) CreateDestination(ctx thrift.Context, createRequest *c.Create | |||
dstResource := common.GetResourceURNOperateDestination(h.SCommon, createRequest.Path) | |||
h.addPermissions(subject, | |||
dstResource, | |||
[]common.Operation{common.OperationRead, common.OperationUpdate, common.OperationDelete}, | |||
[]common.Operation{common.OperationUpdate, common.OperationDelete}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update the comment above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@@ -666,7 +666,7 @@ func (h *Frontend) CreateDestination(ctx thrift.Context, createRequest *c.Create | |||
dstResource := common.GetResourceURNOperateDestination(h.SCommon, createRequest.Path) | |||
h.addPermissions(subject, | |||
dstResource, | |||
[]common.Operation{common.OperationRead, common.OperationUpdate, common.OperationDelete}, | |||
[]common.Operation{common.OperationUpdate, common.OperationDelete}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove the common.OperationRead enum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion
@@ -1002,7 +1002,7 @@ func (h *Frontend) UpdateDestination(ctx thrift.Context, updateRequest *c.Update | |||
dstResource := common.GetResourceURNOperateDestination(h.SCommon, updateRequest.Path) | |||
h.addPermissions(ownerSubject, | |||
dstResource, | |||
[]common.Operation{common.OperationRead, common.OperationUpdate, common.OperationDelete}, | |||
[]common.Operation{common.OperationUpdate, common.OperationDelete}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment above
Updated code per comments |
No description provided.