Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Add auth check for DeleteConsumerGroup; Add permissions for owner #232

Merged
merged 5 commits into from
Jun 21, 2017

Conversation

hiboyang
Copy link
Contributor

Add auth check for DeleteConsumerGroup
Add permissions for owner of Destination/Consumer Group to Read/Update/Delete

@coveralls
Copy link

coveralls commented Jun 21, 2017

Coverage Status

Coverage decreased (-20.2%) to 48.154% when pulling 0757642 on security17 into f74f60c on master.

lclLg)
// Add Read/Update/Delete permissions for the current user and owner on the destination
subjects := []common.Subject{authSubject}
if createRequest.OwnerEmail != nil && *createRequest.OwnerEmail != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just do a len(createRequest.GetOwnerEmail()) > 0

@coveralls
Copy link

coveralls commented Jun 21, 2017

Coverage Status

Coverage increased (+0.4%) to 68.755% when pulling 674d194 on security17 into f74f60c on master.

@hiboyang hiboyang merged commit ec8103f into master Jun 21, 2017
@hiboyang hiboyang deleted the security17 branch June 21, 2017 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants