Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Allow permissible behaviour to emit alternative status codes #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oligriffiths
Copy link
Contributor

@oligriffiths oligriffiths commented Apr 29, 2016

What

Allow permissible behaviour to emit alternative status codes

Why

Currently the permissible behavior only accepts false as a return value and tries to auto-determine if a method is permissible by checking if the user is authentic, and works out the appropriate exception to throw based on that. This PR allows for explicitly returning status code types

Note

Also, thinking it might be an idea to provide a way to easily blacklist actions from the controller for actions that are not accessible publically...

Test

This should function exactly as the current implementation but also allow for returning explicit status codes to dictate the specific exception type to be thrown.

@johanjanssens johanjanssens self-requested a review January 5, 2017 02:32
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.

None yet

1 participant