mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 00:54:27 +00:00
Removed permission system from models
This commit is contained in:
@@ -11,19 +11,16 @@ class Dokumentstudiengang_model extends DB_Model
|
||||
$this->dbTable = 'public.tbl_dokumentstudiengang';
|
||||
$this->pk = array('studiengang_kz', 'dokument_kurzbz');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getDokumentstudiengangByStudiengang_kz
|
||||
*/
|
||||
public function getDokumentstudiengangByStudiengang_kz($studiengang_kz, $onlinebewerbung = null, $pflicht = null, $nachreichbar = null)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (isError($ent = $this->isEntitled('public.tbl_dokument', 's', FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
$this->addJoin('public.tbl_dokument', 'dokument_kurzbz');
|
||||
|
||||
|
||||
$parameterArray = array('studiengang_kz' => $studiengang_kz);
|
||||
|
||||
|
||||
if( isset($onlinebewerbung))
|
||||
{
|
||||
$parameterArray['onlinebewerbung'] = $onlinebewerbung;
|
||||
@@ -33,12 +30,12 @@ class Dokumentstudiengang_model extends DB_Model
|
||||
{
|
||||
$parameterArray['pflicht'] = $pflicht;
|
||||
}
|
||||
|
||||
|
||||
if( isset($nachreichbar))
|
||||
{
|
||||
$parameterArray['nachreichbar'] = $nachreichbar;
|
||||
}
|
||||
|
||||
|
||||
return $this->loadWhere($parameterArray);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user