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

do not enforce default permissions on exception views #2534

Conversation

mmerickel
Copy link
Member

@mmerickel mmerickel commented Apr 26, 2016

  • this normalizes the behavior to work similar to require_csrf
  • if an explicit permission= is set on the view it will still be enforced,
    this just affects a default permission via config.set_default_permission
  • permission=NO_PERMISSION_REQUIRED was already forced on for notfound
    and forbidden views, this just helps out with other exception views

This partially solves concerns with #2533

- this normalizes the behavior to work similar to require_csrf

- if an explicit permission= is set on the view it will still be enforced,
  this just affects a default permission via config.set_default_permission

- permission=NO_PERMISSION_REQUIRED was already forced on for notfound
  and forbidden views, this just helps out with other exception views
@digitalresistor
Copy link
Member

👍

@mmerickel mmerickel merged commit 0a1f99d into Pylons:master Apr 28, 2016
mmerickel added a commit that referenced this pull request Apr 28, 2016
mmerickel added a commit that referenced this pull request May 1, 2016
stevepiercy pushed a commit to stevepiercy/pyramid that referenced this pull request May 8, 2016
stevepiercy pushed a commit to stevepiercy/pyramid that referenced this pull request May 8, 2016
@mmerickel mmerickel deleted the fix/do-not-enforce-default-permissions-on-exception-views branch November 29, 2020 03:10
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.

2 participants