CakeDC\Users\View\Helper\UserHelper::isAuthorized PHP 메소드

isAuthorized() 공개 메소드

Returns true if the target url is authorized for the logged in user
사용 중단: Since 3.2.1. Use AuthLinkHelper::link() instead
public isAuthorized ( string | array | null $url = null ) : boolean
$url string | array | null url that the user is making request.
리턴 boolean
    public function isAuthorized($url = null)
    {
        trigger_error('UserHelper::isAuthorized() deprecated since 3.2.1. Use AuthLinkHelper::isAuthorized() instead', E_USER_DEPRECATED);
        return $this->AuthLink->isAuthorized($url);
    }