protected function allows($permissionName)
    {
        foreach ($this->getMatchingPermissions($permissionName) as $key)
        {
            /** @var Permission $permission */
            $permission = $this->permissions->get($key);

            if ($permission->isAllowed())
            {
                return true;
            }
        }

        return false;
    }