mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
- 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:
@@ -24,8 +24,8 @@ class Ablauf extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model AblaufModel
|
||||
$this->load->model('testtool/ablauf_model', 'AblaufModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->AblaufModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Antwort extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model AntwortModel
|
||||
$this->load->model('testtool/antwort_model', 'AntwortModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->AntwortModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Frage extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model FrageModel
|
||||
$this->load->model('testtool/frage_model', 'FrageModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->FrageModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Gebiet extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model GebietModel
|
||||
$this->load->model('testtool/gebiet_model', 'GebietModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->GebietModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Kategorie extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model KategorieModel
|
||||
$this->load->model('testtool/kategorie_model', 'KategorieModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->KategorieModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Kriterien extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model KriterienModel
|
||||
$this->load->model('testtool/kriterien_model', 'KriterienModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->KriterienModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Pruefling extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model PrueflingModel
|
||||
$this->load->model('testtool/pruefling_model', 'PrueflingModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->PrueflingModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Vorschlag extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model VorschlagModel
|
||||
$this->load->model('testtool/vorschlag_model', 'VorschlagModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->VorschlagModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user