protected function getRole($role)
	{
		if (!isset($this->user))
			return false;

		if (isset($this->user->role))
			return $this->user->role->hasPermission($role);

		return false;
	}
protected function getRole($role)
	{
		if (!isset($this->user))
			return false;

		if (isset($this->user->role))
			return $this->user->role->hasPermission($role);

		return false;
	}
protected function getRole ( $ role ) { if ( ! isset ( $ this -> user ) ) return false ; if ( isset ( $ this -> user -> role ) ) return $ this -> user -> role -> hasPermission ( $ role ) ; return false ; }
Helper function to get the user's role
@param 	integer $role 	the user's role'
@return 	boolean
Helper function to get the user s role