src/bbn/user/permissions.php
public function add(string $id_option, string $type = 'page'): ?int
  {
    if ( $id_option = $this->_get_id_option($id_option, $type) ){
      return $this->pref->set_by_option($id_option, []);
    }
    return null;
  }
public function add(string $id_option, string $type = 'page'): ?int
  {
    if ( $id_option = $this->_get_id_option($id_option, $type) ){
      return $this->pref->set_by_option($id_option, []);
    }
    return null;
  }
public function add ( string $ id_option , string $ type = 'page' ) : ? int { if ( $ id_option = $ this -> _get_id_option ( $ id_option , $ type ) ) { return $ this -> pref -> set_by_option ( $ id_option , [ ] ) ; } return null ; }
Grants a new permission to a user or a group
@param null|string $id_option
@param string $type
@return int
Grants a new permission to a user or a group