public function authorise($id)
	{
		$menu = $this->getItem($id);

		if ($menu)
		{
			return in_array((int) $menu->access, $this->get('access', array(0)));
		}

		return true;
	}
public function authorise($id)
	{
		$menu = $this->getItem($id);

		if ($menu)
		{
			return in_array((int) $menu->access, $this->get('access', array(0)));
		}

		return true;
	}
public function authorise ( $ id ) { $ menu = $ this -> getItem ( $ id ) ; if ( $ menu ) { return in_array ( ( int ) $ menu -> access , $ this -> get ( 'access' , array ( 0 ) ) ) ; } return true ; }
Method to check object authorization against an access control
object and optionally an access extension object

@param   integer  $id  The menu id
@return  boolean  True if authorised
Method to check object authorization against an access control object and optionally an access extension object