PHP Interface Sulu\Component\Security\Authorization\SecurityCheckerInterface

Datei anzeigen Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
checkPermission ( mixed $subject, string $permission ) : boolean Checks a Sulu specific permission based on the subject, a permission type and a locale.
hasPermission ( $subject, $permission ) : boolean

Method Details

checkPermission() public method

Checks a Sulu specific permission based on the subject, a permission type and a locale.
public checkPermission ( mixed $subject, string $permission ) : boolean
$subject mixed
$permission string
return boolean

hasPermission() public method

public hasPermission ( $subject, $permission ) : boolean
$subject
$permission
return boolean