PHP Class FluxBB\Auth\Authorizer

Datei anzeigen Open project: fluxbb/core

Public Methods

Method Description
authorize ( FluxBB\Models\HasPermissions $subject ) : void Authorize the given user.

Protected Methods

Method Description
authorizedIf ( boolean $check ) Make sure the given check passes, otherwise throw an exception.

Method Details

authorize() abstract public method

Should throw an exception if authorization fails.
abstract public authorize ( FluxBB\Models\HasPermissions $subject ) : void
$subject FluxBB\Models\HasPermissions
return void

authorizedIf() protected method

Make sure the given check passes, otherwise throw an exception.
protected authorizedIf ( boolean $check )
$check boolean