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 Appdaten extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model AppdatenModel
|
||||
$this->load->model('system/appdaten_model', 'AppdatenModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->AppdatenModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Benutzerrolle extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model BenutzerrolleModel
|
||||
$this->load->model('system/benutzerrolle_model', 'BenutzerrolleModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BenutzerrolleModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Berechtigung extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model BerechtigungModel
|
||||
$this->load->model('system/berechtigung_model', 'BerechtigungModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BerechtigungModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Cronjob extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model CronjobModel
|
||||
$this->load->model('system/cronjob_model', 'CronjobModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->CronjobModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Filter extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model FilterModel
|
||||
$this->load->model('system/filter_model', 'FilterModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->FilterModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Log extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model LogModel
|
||||
$this->load->model('system/log_model', 'LogModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->LogModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ class Message extends APIv1_Controller
|
||||
{
|
||||
parent::__construct();
|
||||
// Load library MessageLib
|
||||
$this->load->library('MessageLib', array('uid' => $this->_getUID()));
|
||||
$this->load->library('MessageLib');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Rolle extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model RolleModel
|
||||
$this->load->model('system/rolle_model', 'RolleModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->RolleModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Rolleberechtigung extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model RolleberechtigungModel
|
||||
$this->load->model('system/rolleberechtigung_model', 'RolleberechtigungModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->RolleberechtigungModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Server extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model ServerModel
|
||||
$this->load->model('system/server_model', 'ServerModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ServerModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Sprache2 extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model SpracheModel
|
||||
$this->load->model('system/sprache_model', 'SpracheModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->SpracheModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Tag extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model TagModel
|
||||
$this->load->model('system/tag_model', 'TagModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->TagModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Thread extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model ThreadModel
|
||||
$this->load->model('system/thread_model', 'ThreadModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->ThreadModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Variable extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model VariableModel
|
||||
$this->load->model('system/variable_model', 'VariableModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->VariableModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Vorlage extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model VorlageModel
|
||||
$this->load->model('system/vorlage_model', 'VorlageModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->VorlageModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Vorlagestudiengang extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model VorlagestudiengangModel
|
||||
$this->load->model('system/vorlagestudiengang_model', 'VorlagestudiengangModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->VorlagestudiengangModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Webservicelog extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model WebservicelogModel
|
||||
$this->load->model('system/webservicelog_model', 'WebservicelogModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->WebservicelogModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Webservicerecht extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model WebservicerechtModel
|
||||
$this->load->model('system/webservicerecht_model', 'WebservicerechtModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->WebservicerechtModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class Webservicetyp extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model WebservicetypModel
|
||||
$this->load->model('system/webservicetyp_model', 'WebservicetypModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->WebservicetypModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,8 +24,8 @@ class message_old extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model message_oldModel
|
||||
$this->load->model('system/message_old_model', 'message_oldModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->message_oldModel->setUID($this->_getUID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user