07-05-2007, 05:12 PM
[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:
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.
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' );
}
}
But now it never opens scaffolding. Is there a way to make it only viewable for status 3 members? Or anything else?
Thanks,
Mike.