public function has_right_on_sbas($sbas_id, $right)
    {
        $this->load_rights_sbas();

        if (!isset($this->_rights_sbas[$sbas_id])) {
            return false;
        }

        if (!isset($this->_rights_sbas[$sbas_id][$right])) {
            throw new Exception('This right does not exists');
        }

        if ($this->_rights_sbas[$sbas_id][$right] === true) {
            return true;
        }

        return false;
    }
public function has_right_on_sbas($sbas_id, $right)
    {
        $this->load_rights_sbas();

        if (!isset($this->_rights_sbas[$sbas_id])) {
            return false;
        }

        if (!isset($this->_rights_sbas[$sbas_id][$right])) {
            throw new Exception('This right does not exists');
        }

        if ($this->_rights_sbas[$sbas_id][$right] === true) {
            return true;
        }

        return false;
    }
public function has_right_on_sbas ( $ sbas_id , $ right ) { $ this -> load_rights_sbas ( ) ; if ( ! isset ( $ this -> _rights_sbas [ $ sbas_id ] ) ) { return false ; } if ( ! isset ( $ this -> _rights_sbas [ $ sbas_id ] [ $ right ] ) ) { throw new Exception ( 'This right does not exists' ) ; } if ( $ this -> _rights_sbas [ $ sbas_id ] [ $ right ] === true ) { return true ; } return false ; }
Check if the user has the required right on a database

@param  int $sbas_id
@param  string $right
@return bool
@throws Exception
Check if the user has the required right on a database