public function isAuthorized($authZ)
    {
        // We have a list of entitlements to check against.
        if (is_array($authZ)) {
            foreach ($authZ as $currentAuthZ) {
                if ($this->checkEntitlement($currentAuthZ)) {
                    return true;
                }
            }
        } else {
            return $this->checkEntitlement($authZ);
        }

        return false;
    }
public function isAuthorized($authZ)
    {
        // We have a list of entitlements to check against.
        if (is_array($authZ)) {
            foreach ($authZ as $currentAuthZ) {
                if ($this->checkEntitlement($currentAuthZ)) {
                    return true;
                }
            }
        } else {
            return $this->checkEntitlement($authZ);
        }

        return false;
    }
public function isAuthorized ( $ authZ ) { // We have a list of entitlements to check against. if ( is_array ( $ authZ ) ) { foreach ( $ authZ as $ currentAuthZ ) { if ( $ this -> checkEntitlement ( $ currentAuthZ ) ) { return true ; } } } else { return $ this -> checkEntitlement ( $ authZ ) ; } return false ; }
Compare the user's entitlements to one or more entitlements for authorizing access in an application.

@param mixed $authZ

@return bool
Compare the user s entitlements to one or more entitlements for authorizing access in an application .