Skip to content


@require Should Not Always Redirect To Login #27

pedersen opened this Issue · 0 comments

1 participant

TurboGears member

Right now, the require decorator will always redirect to the login page if the user does not have permissions to view the page in question.

Alternate behaviors that should be provided:

  • On detecting a content type that indicates a JavaScript/library type call, return a 403 (XML, JSON)
  • The developer should have the option of always aborting with a 403, and thus end the process, no redirect
  • The developer should have the ability to override the smart handling, and force things to end with a 403.
@pedersen pedersen was assigned
@pedersen pedersen added a commit that closed this issue
@pedersen pedersen @require now provides smart behavior, and can be used to just abort, …
…rather than do redirect. Closes #27
@pedersen pedersen closed this in bcb5e77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.