add permission&user existence check before editing repo's configuration #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hi,
first of all, I want to thank you for your excellent work, so that I can manipulate gitolite with Python without writing much code myself.
but when I prepare to edit the user permission configuration of a repo, if the use not exists in the repo's config file, pyolite did nothing, and if the user exists, it will update the configuration file without persmission argument check. So I add user existence check and permission argument check before updating the repo's configuration.
Also I found that these attribute:
_user,_usersand this methodappendare not exists inListUsersclass, and I don't konw if you're preparing to maintain these code in the future and what is your plan for this class , so I just treat them as bugs and comment them out.B.R.
thanks.