Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add repoze.workflow.has_permission #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

davidemoro
Copy link

Many pyramid applications are using the deprecated pyramid.security.has_permission API:

DeprecationWarning: has_permission: As of Pyramid 1.5 the "pyramid.security.has_permission" API is now deprecated. It will be removed in Pyramid 1.8. Use the "has_permission" method of the Pyramid request instead.

This PR add a repoze.workflow.has_permission (defined in the repoze.workflow.security module) that invokes request.has_permission so people using the deprecated permission checker will be able to avoid the deprecation using the one provided by repoze.workflow.

cc: @disko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant