Welcome Guest, Not a member yet? Register   Sign In
Scaffolding
#1

[eluser]Xikeon[/eluser]
Hello,

I know that Scaffolding is only for developers but isn't there a way to protect it?
I've got the trigger on "admin".

Now, this is how I try to protect it:
Code:
function User( )
    {
        parent::Controller( );
        
        if( $this->userlib->logged_in( ) && $this->userlib->getData( $this->session->userdata( 'username' ), 'status' ) == 3 )
        {
            $this->load->scaffolding( 'users' );
        }
    }
That's my userlib login and status check for admin.

But now it never opens scaffolding. Is there a way to make it only viewable for status 3 members? Or anything else?

Thanks,
Mike.


Messages In This Thread
Scaffolding - by El Forum - 07-05-2007, 05:12 PM
Scaffolding - by El Forum - 07-06-2007, 03:36 AM
Scaffolding - by El Forum - 07-06-2007, 04:35 AM
Scaffolding - by El Forum - 07-06-2007, 01:11 PM
Scaffolding - by El Forum - 07-06-2007, 04:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB