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

Add PERMISSIONS_ENABLED setting #253

Merged
merged 1 commit into from
Oct 19, 2014
Merged

Add PERMISSIONS_ENABLED setting #253

merged 1 commit into from
Oct 19, 2014

Conversation

bruth
Copy link
Contributor

@bruth bruth commented Oct 17, 2014

This fixes an ambiguity when applying the permissions if a user is
passed to the published() manager method for DataField and DataConcept.

Fix #252

Signed-off-by: Byron Ruth b@devel.io

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) when pulling 077bf94 on issue-252 into e090d7d on master.

@bruth bruth changed the title Ignore user in published() if django-guardian is not installed Add PERMISSIONS_ENABLED setting Oct 17, 2014
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) when pulling 6487d59 on issue-252 into e090d7d on master.


published = get_objects_for_user(user, perm, published)
elif settings.PERMISSIONS_ENABLED is True:
raise ImproperlyConfigured('django-guardian must installed to '
Copy link
Collaborator

Choose a reason for hiding this comment

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

must installed to => must be installed to

@naegelyd
Copy link
Collaborator

Looks good other than the 2 config error messages. Will merge after those are updated.

This fixes an ambiguity when applying the permissions if a user is
passed to the published() manager method for DataField and DataConcept.

Fix #252

Signed-off-by: Byron Ruth <b@devel.io>
@bruth
Copy link
Contributor Author

bruth commented Oct 19, 2014

Updated.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) when pulling 38a4723 on issue-252 into e090d7d on master.

naegelyd added a commit that referenced this pull request Oct 19, 2014
Add PERMISSIONS_ENABLED setting
@naegelyd naegelyd merged commit 1b11c0e into master Oct 19, 2014
@bruth bruth deleted the issue-252 branch October 19, 2014 20:02
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.

Passing user should not fail if django-guardian is not installed
3 participants