public function isAllow($object,$method,$token)
    {
        $allowed = $this->getAllowedMethods($token);
        $object = mb_strtolower($object);
        $method = mb_strtolower($method);
        $allow = false;
        if (
            (isset($allowed[$object]) && in_array($method,$allowed[$object]))
            || (isset($allowed[$object]) && in_array('*',$allowed[$object]))
            || (isset($allowed['*']) && in_array($method,$allowed['*']))
            || (isset($allowed['*']) && in_array('*',$allowed['*']))
        ) {
            $allow = true;
        };

        return $allow;
    }
public function isAllow($object,$method,$token)
    {
        $allowed = $this->getAllowedMethods($token);
        $object = mb_strtolower($object);
        $method = mb_strtolower($method);
        $allow = false;
        if (
            (isset($allowed[$object]) && in_array($method,$allowed[$object]))
            || (isset($allowed[$object]) && in_array('*',$allowed[$object]))
            || (isset($allowed['*']) && in_array($method,$allowed['*']))
            || (isset($allowed['*']) && in_array('*',$allowed['*']))
        ) {
            $allow = true;
        };

        return $allow;
    }
public function isAllow ( $ object , $ method , $ token ) { $ allowed = $ this -> getAllowedMethods ( $ token ) ; $ object = mb_strtolower ( $ object ) ; $ method = mb_strtolower ( $ method ) ; $ allow = false ; if ( ( isset ( $ allowed [ $ object ] ) && in_array ( $ method , $ allowed [ $ object ] ) ) || ( isset ( $ allowed [ $ object ] ) && in_array ( '*' , $ allowed [ $ object ] ) ) || ( isset ( $ allowed [ '*' ] ) && in_array ( $ method , $ allowed [ '*' ] ) ) || ( isset ( $ allowed [ '*' ] ) && in_array ( '*' , $ allowed [ '*' ] ) ) ) { $ allow = true ; } ; return $ allow ; }
Check for method allow

@param string $object
@param string $method
@param string $token
@return true
Check for method allow