Remove spare checks for user_id (as this is unset for unauthenicated API

calls)
pull/1449/head
phl0 2022-04-01 16:17:05 +02:00
rodzic 19270f6b9f
commit 82d5021dc7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 48EA1E640798CA9A
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -469,7 +469,7 @@ class Logbook_model extends CI_Model {
*/
function exists_qrz_api_key($station_id) {
$sql = 'select qrzapikey, qrzrealtime from station_profile
where station_id = ' . $station_id . ' and station_profile.user_id = ' . $this->session->userdata('user_id');
where station_id = ' . $station_id;
$query = $this->db->query($sql);
@ -1005,7 +1005,6 @@ class Logbook_model extends CI_Model {
$this->db->from($this->config->item('table_name'));
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
$this->db->where('station_profile.user_id', $this->session->userdata('user_id'));
$this->db->where('COL_PRIMARY_KEY', $id);
return $this->db->get();