CodeIgniter Forums

Full Version: Problem with redirect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Wonder Woman[/eluser]

Can anyone help me with my redirect problem?

I want it to go to if they are not the correct admin level but instead it goes to to no matter how much I have tried to make it redirect to the admin section.

This is the code in my controller:

// check to see if the user is logged in
if (!$this->tank_auth->is_logged_in()) {
else {
   // check to see if they are an administrator
   if($this->admin_model->get_admin_level($this->tank_auth->get_user_id()) != 1) {


El Forum

[eluser]Wonder Woman[/eluser]
Forgive me, I have utterly blonde and this is sorted! Thanks