- 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,8 @@ class Erhalter extends APIv1_Controller
parent::__construct();
// Load model ErhalterModel
$this->load->model('organisation/erhalter_model', 'ErhalterModel');
// Load set the uid of the model to let to check the permissions
$this->ErhalterModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Fachbereich2 extends APIv1_Controller
parent::__construct();
// Load model FachbereichModel
$this->load->model('organisation/fachbereich_model', 'FachbereichModel');
// Load set the uid of the model to let to check the permissions
$this->FachbereichModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Ferien extends APIv1_Controller
parent::__construct();
// Load model FerienModel
$this->load->model('organisation/ferien_model', 'FerienModel');
// Load set the uid of the model to let to check the permissions
$this->FerienModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Geschaeftsjahr2 extends APIv1_Controller
parent::__construct();
// Load model GeschaeftsjahrModel
$this->load->model('organisation/geschaeftsjahr_model', 'GeschaeftsjahrModel');
// Load set the uid of the model to let to check the permissions
$this->GeschaeftsjahrModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Gruppe extends APIv1_Controller
parent::__construct();
// Load model GruppeModel
$this->load->model('organisation/gruppe_model', 'GruppeModel');
// Load set the uid of the model to let to check the permissions
$this->GruppeModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Lehrverband extends APIv1_Controller
parent::__construct();
// Load model LehrverbandModel
$this->load->model('organisation/lehrverband_model', 'LehrverbandModel');
// Load set the uid of the model to let to check the permissions
$this->LehrverbandModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Organisationseinheit2 extends APIv1_Controller
parent::__construct();
// Load model OrganisationseinheitModel
$this->load->model('organisation/organisationseinheit_model', 'OrganisationseinheitModel');
// Load set the uid of the model to let to check the permissions
$this->OrganisationseinheitModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Organisationseinheittyp extends APIv1_Controller
parent::__construct();
// Load model OrganisationseinheittypModel
$this->load->model('organisation/organisationseinheittyp_model', 'OrganisationseinheittypModel');
// Load set the uid of the model to let to check the permissions
$this->OrganisationseinheittypModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Semesterwochen extends APIv1_Controller
parent::__construct();
// Load model SemesterwochenModel
$this->load->model('organisation/semesterwochen_model', 'SemesterwochenModel');
// Load set the uid of the model to let to check the permissions
$this->SemesterwochenModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Service extends APIv1_Controller
parent::__construct();
// Load model ServiceModel
$this->load->model('organisation/service_model', 'ServiceModel');
// Load set the uid of the model to let to check the permissions
$this->ServiceModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Standort extends APIv1_Controller
parent::__construct();
// Load model StandortModel
$this->load->model('organisation/standort_model', 'StandortModel');
// Load set the uid of the model to let to check the permissions
$this->StandortModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Statistik extends APIv1_Controller
parent::__construct();
// Load model StatistikModel
$this->load->model('organisation/statistik_model', 'StatistikModel');
// Load set the uid of the model to let to check the permissions
$this->StatistikModel->setUID($this->_getUID());
}
/**
@@ -23,8 +23,8 @@ class Studiengang2 extends APIv1_Controller
parent::__construct();
// Load model PersonModel
$this->load->model('organisation/studiengang_model', 'StudiengangModel');
// Load set the uid of the model to let to check the permissions
$this->StudiengangModel->setUID($this->_getUID());
}
public function getStudiengang()
@@ -24,8 +24,8 @@ class Studiengangstyp extends APIv1_Controller
parent::__construct();
// Load model StudiengangstypModel
$this->load->model('organisation/studiengangstyp_model', 'StudiengangstypModel');
// Load set the uid of the model to let to check the permissions
$this->StudiengangstypModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Studienjahr extends APIv1_Controller
parent::__construct();
// Load model StudienjahrModel
$this->load->model('organisation/studienjahr_model', 'StudienjahrModel');
// Load set the uid of the model to let to check the permissions
$this->StudienjahrModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Studienordnung extends APIv1_Controller
parent::__construct();
// Load model StudienordnungModel
$this->load->model('organisation/studienordnung_model', 'StudienordnungModel');
// Load set the uid of the model to let to check the permissions
$this->StudienordnungModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Studienordnungstatus extends APIv1_Controller
parent::__construct();
// Load model StudienordnungstatusModel
$this->load->model('organisation/studienordnungstatus_model', 'StudienordnungstatusModel');
// Load set the uid of the model to let to check the permissions
$this->StudienordnungstatusModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Studienplan extends APIv1_Controller
parent::__construct();
// Load model PersonModel
$this->load->model('organisation/studienplan_model', 'StudienplanModel');
// Load set the uid of the model to let to check the permissions
$this->StudienplanModel->setUID($this->_getUID());
}
public function getStudienplan()
@@ -24,8 +24,8 @@ class Studienplatz extends APIv1_Controller
parent::__construct();
// Load model StudienplatzModel
$this->load->model('organisation/studienplatz_model', 'StudienplatzModel');
// Load set the uid of the model to let to check the permissions
$this->StudienplatzModel->setUID($this->_getUID());
}
/**
@@ -24,8 +24,8 @@ class Studiensemester extends APIv1_Controller
parent::__construct();
// Load model StudiensemesterModel
$this->load->model('organisation/studiensemester_model', 'StudiensemesterModel');
// Load set the uid of the model to let to check the permissions
$this->StudiensemesterModel->setUID($this->_getUID());
}
/**