PHP Class FluxBB\Auth\Authorizer

Afficher le fichier Open project: fluxbb/core

Méthodes publiques

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

Méthodes protégées

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

Method Details

authorize() abstract public méthode

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

authorizedIf() protected méthode

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