Eccube\Application\ApplicationTrait::isGranted PHP Method

isGranted() public method

Checks if the attributes are granted against the current authentication token and optionally supplied object.
public isGranted ( mixed $attributes, mixed $object = null ) : boolean
$attributes mixed
$object mixed
return boolean
    public function isGranted($attributes, $object = null)
    {
        return $this['security.authorization_checker']->isGranted($attributes, $object);
    }