Well for my part I am unsure. Should it matter? And that is part of what I am trying to figure out. I am not facing one problem or a bug, I think my question is more in terms of best practice and what is proper, and in part how things should be done.
What could the consequences be when throwing HttpException instead of AuthorizationException? In a controller, if we do $this->authorize(...) we would have to catch a different exception. We could just change those and do that, but does it matter? For now all I know is that it appears to be possible, but it feels weird and off.
Would it, assumedly, be more secure to use whitelisting instead of blacklisting?
The method does not really return anything, ever, in cases of "denial". Does it matter? The whole premise feels wrong, but it appears to work in practice.
It is in an API context, if that makes a difference, and the reasoning seems to be that this will automatically return 403 with a predefined message whenever one tries to authorize for this action.
I guess I am a bit biased, but I am honestly just trying to figure this out to iron out an internal issue and to learn something new.
Edit:
What would your initial reaction be if you came across a system of policies written in this matter when working on an API?