...

World Wide Web Server 2012-07-04 16:05:25 -07: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()