title: Codeigniter customized user roles open specific pages only
body: <p>How do I define the user privileges in CI opening specific pages?
  I was thinking  calling the database value every time open a page and see if he has any right to open the particular page. If he has no right it would show up, it would directly logged you out. But there would be so many pages to do.
  I would create a function and check it everytime it open a page.
  Is that the easiest way?</p>
  
  <p>Thanks.</p>