- Added permission basis/phrase to dump.sql

- The function getAuthUID() present in the helper fhcauth_helper.php
now tries to work always with CI session to get the uid
- REST_controller doesn't need anymore to handle the uid
- FHC_Controller and FHC_Model load fhcauth_helper in their constructor,
so any class that extends them now could call the function getAuthUID()
anywhere in the code
- The controllers don't need anymore to pass the uid to the models or to the
libraries
- Library FHC_DB_ACL load fhcauth_helper in its constructor and uses getAuthID()
This commit is contained in:
paolo
2016-06-24 13:22:27 +02:00
parent 58a6da42ae
commit 9a4f5480c4
231 changed files with 412 additions and 636 deletions
@@ -24,8 +24,6 @@ class Akadgrad extends APIv1_Controller
parent::__construct();
// Load model AkadgradModel
$this->load->model('codex/akadgrad_model', 'AkadgradModel');
// Load set the uid of the model to let to check the permissions
$this->AkadgradModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Archiv extends APIv1_Controller
parent::__construct();
// Load model ArchivModel
$this->load->model('codex/archiv_model', 'ArchivModel');
// Load set the uid of the model to let to check the permissions
$this->ArchivModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Aufmerksamdurch extends APIv1_Controller
parent::__construct();
// Load model AufmerksamdurchModel
$this->load->model('codex/aufmerksamdurch_model', 'AufmerksamdurchModel');
// Load set the uid of the model to let to check the permissions
$this->AufmerksamdurchModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Ausbildung extends APIv1_Controller
parent::__construct();
// Load model AusbildungModel
$this->load->model('codex/ausbildung_model', 'AusbildungModel');
// Load set the uid of the model to let to check the permissions
$this->AusbildungModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Berufstaetigkeit extends APIv1_Controller
parent::__construct();
// Load model BerufstaetigkeitModel
$this->load->model('codex/berufstaetigkeit_model', 'BerufstaetigkeitModel');
// Load set the uid of the model to let to check the permissions
$this->BerufstaetigkeitModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Beschaeftigungsausmass extends APIv1_Controller
parent::__construct();
// Load model BeschaeftigungsausmassModel
$this->load->model('codex/beschaeftigungsausmass_model', 'BeschaeftigungsausmassModel');
// Load set the uid of the model to let to check the permissions
$this->BeschaeftigungsausmassModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Besqual extends APIv1_Controller
parent::__construct();
// Load model BesqualModel
$this->load->model('codex/besqual_model', 'BesqualModel');
// Load set the uid of the model to let to check the permissions
$this->BesqualModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Bisfunktion extends APIv1_Controller
parent::__construct();
// Load model BisfunktionModel
$this->load->model('codex/bisfunktion_model', 'BisfunktionModel');
// Load set the uid of the model to let to check the permissions
$this->BisfunktionModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Bisio extends APIv1_Controller
parent::__construct();
// Load model BisioModel
$this->load->model('codex/bisio_model', 'BisioModel');
// Load set the uid of the model to let to check the permissions
$this->BisioModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Bisorgform extends APIv1_Controller
parent::__construct();
// Load model BisorgformModel
$this->load->model('codex/bisorgform_model', 'BisorgformModel');
// Load set the uid of the model to let to check the permissions
$this->BisorgformModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Bisverwendung extends APIv1_Controller
parent::__construct();
// Load model BisverwendungModel
$this->load->model('codex/bisverwendung_model', 'BisverwendungModel');
// Load set the uid of the model to let to check the permissions
$this->BisverwendungModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Bundesland extends APIv1_Controller
parent::__construct();
// Load model PersonModel
$this->load->model('codex/bundesland_model', 'BundeslandModel');
// Load set the uid of the model to let to check the permissions
$this->BundeslandModel->setUID($this->_getUID());
}
public function getAll()
@@ -24,8 +24,6 @@ class Entwicklungsteam extends APIv1_Controller
parent::__construct();
// Load model EntwicklungsteamModel
$this->load->model('codex/entwicklungsteam_model', 'EntwicklungsteamModel');
// Load set the uid of the model to let to check the permissions
$this->EntwicklungsteamModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Gemeinde extends APIv1_Controller
parent::__construct();
// Load model GemeindeModel
$this->load->model('codex/gemeinde_model', 'GemeindeModel');
// Load set the uid of the model to let to check the permissions
$this->GemeindeModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Hauptberuf extends APIv1_Controller
parent::__construct();
// Load model HauptberufModel
$this->load->model('codex/hauptberuf_model', 'HauptberufModel');
// Load set the uid of the model to let to check the permissions
$this->HauptberufModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Lehrform extends APIv1_Controller
parent::__construct();
// Load model LehrformModel
$this->load->model('codex/lehrform_model', 'LehrformModel');
// Load set the uid of the model to let to check the permissions
$this->LehrformModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Lgartcode extends APIv1_Controller
parent::__construct();
// Load model LgartcodeModel
$this->load->model('codex/lgartcode_model', 'LgartcodeModel');
// Load set the uid of the model to let to check the permissions
$this->LgartcodeModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Mobilitaetsprogramm extends APIv1_Controller
parent::__construct();
// Load model MobilitaetsprogrammModel
$this->load->model('codex/mobilitaetsprogramm_model', 'MobilitaetsprogrammModel');
// Load set the uid of the model to let to check the permissions
$this->MobilitaetsprogrammModel->setUID($this->_getUID());
}
/**
@@ -22,10 +22,8 @@ class Nation extends APIv1_Controller
public function __construct()
{
parent::__construct();
// Load model PersonModel
// Load model NationModel
$this->load->model('codex/nation_model', 'NationModel');
// Load set the uid of the model to let to check the permissions
$this->NationModel->setUID($this->_getUID());
}
public function getNation()
@@ -24,8 +24,6 @@ class Note extends APIv1_Controller
parent::__construct();
// Load model NoteModel
$this->load->model('codex/note_model', 'NoteModel');
// Load set the uid of the model to let to check the permissions
$this->NoteModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Orgform extends APIv1_Controller
parent::__construct();
// Load model OrgformModel
$this->load->model('codex/orgform_model', 'OrgformModel');
// Load set the uid of the model to let to check the permissions
$this->OrgformModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Verwendung extends APIv1_Controller
parent::__construct();
// Load model VerwendungModel
$this->load->model('codex/verwendung_model', 'VerwendungModel');
// Load set the uid of the model to let to check the permissions
$this->VerwendungModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Zgv extends APIv1_Controller
parent::__construct();
// Load model ZgvModel
$this->load->model('codex/zgv_model', 'ZgvModel');
// Load set the uid of the model to let to check the permissions
$this->ZgvModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Zgvdoktor extends APIv1_Controller
parent::__construct();
// Load model ZgvdoktorModel
$this->load->model('codex/zgvdoktor_model', 'ZgvdoktorModel');
// Load set the uid of the model to let to check the permissions
$this->ZgvdoktorModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Zgvgruppe extends APIv1_Controller
parent::__construct();
// Load model ZgvgruppeModel
$this->load->model('codex/zgvgruppe_model', 'ZgvgruppeModel');
// Load set the uid of the model to let to check the permissions
$this->ZgvgruppeModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Zgvmaster extends APIv1_Controller
parent::__construct();
// Load model ZgvmasterModel
$this->load->model('codex/zgvmaster_model', 'ZgvmasterModel');
// Load set the uid of the model to let to check the permissions
$this->ZgvmasterModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,6 @@ class Zweck extends APIv1_Controller
parent::__construct();
// Load model ZweckModel
$this->load->model('codex/zweck_model', 'ZweckModel');
// Load set the uid of the model to let to check the permissions
$this->ZweckModel->setUID($this->_getUID());
}
/**