Add a get_user_permissions management command#1
Open
synw wants to merge 1 commit intotimonweb:masterfrom
synw:master
Open
Add a get_user_permissions management command#1synw wants to merge 1 commit intotimonweb:masterfrom synw:master
synw wants to merge 1 commit intotimonweb:masterfrom
synw:master
Conversation
jayvdb
suggested changes
May 25, 2020
jayvdb
left a comment
There was a problem hiding this comment.
I think this is a very useful addition, but it has bitrot a bit.
IMO it wouldnt hurt to add it to your own package as well, where it may be maintained more often.
| @@ -0,0 +1,54 @@ | |||
| from __future__ import print_function | |||
| from django.core.management.base import BaseCommand | |||
| from goerr import err | |||
There was a problem hiding this comment.
breaks here now; should be Err, and I needed to remove all of the error logging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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, your module gave me the idea of inspecting user permissions for my django-introspection module.
I made a
get_user_permissionsmanagement command that outputs the permissions of a given user.I made a pull request to see if you are interested, otherwise I'll put it in my module. Note that this would add a dependency on django-introspection, which may not be what you want.