src/bbn/user/permissions.php
public function read_option(string $id_option = null): ?bool
  {
    if ( bbn\str::is_uid($id_option) ){
      $root = self::get_option_id('options');
      $id_to_check = $this->opt->from_code('opt'.$id_option, $root);
      return $this->has($id_to_check, 'options');
    }
    return null;
  }
public function read_option(string $id_option = null): ?bool
  {
    if ( bbn\str::is_uid($id_option) ){
      $root = self::get_option_id('options');
      $id_to_check = $this->opt->from_code('opt'.$id_option, $root);
      return $this->has($id_to_check, 'options');
    }
    return null;
  }
public function read_option ( string $ id_option = null ) : ? bool { if ( bbn \ str :: is_uid ( $ id_option ) ) { $ root = self :: get_option_id ( 'options' ) ; $ id_to_check = $ this -> opt -> from_code ( 'opt' . $ id_option , $ root ) ; return $ this -> has ( $ id_to_check , 'options' ) ; } return null ; }
Checks if the category represented by the given option ID is readable by the current user

@param string|null $id_option
@return bool|null
Checks if the category represented by the given option ID is readable by the current user