mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
6805a07078
commit
ba0ecd5410
@ -255,22 +255,17 @@ class Example extends Controller {
|
||||
{
|
||||
parent::Controller();
|
||||
|
||||
// load libs
|
||||
$this->load->library('permission');
|
||||
|
||||
// set groupID
|
||||
$groupID = ($this->session->userdata('groupID')) ? $this->session->userdata('groupID') : 0;
|
||||
|
||||
|
||||
// get permissions and show error if they don't have any permissions at all
|
||||
if (!$this->permissions = $this->permission->get_user_permissions($groupID))
|
||||
{
|
||||
show_error('You do not have any permissions!');
|
||||
}
|
||||
|
||||
|
||||
// load models and libs
|
||||
$this->load->model('blog_model', 'blog');
|
||||
$this->load->library('tags');
|
||||
|
||||
$this->easysite->set = array('siteID' => $this->siteID);
|
||||
}
|
||||
|
||||
function index()
|
||||
|
Loading…
x
Reference in New Issue
Block a user