Instead of returning false, the authorize method now throws an exception when authorization fails.
This AuthException contains a property type which indicates the type of the exception (ban, and, or, none, or any custom mode that can later be added in) and an array of Reason objects each of which contains the public properties group, has and needs. See README for more information about these changes.
Instead of returning false, the
authorize
method now throws an exception when authorization fails.This
AuthException
contains a propertytype
which indicates the type of the exception (ban
,and
,or
,none
, or any custom mode that can later be added in) and an array of Reason objects each of which contains the public propertiesgroup
,has
andneeds
. See README for more information about these changes.