public function init()
    {
        parent::init();

        // Check we are logged in as a user who can access front end management
        if (!Permission::check("USERS_MANAGE_ACCOUNT")) {
            Security::permissionFailure();
        }

        // Set our member object
        $member = Member::currentUser();

        if ($member instanceof Member) {
            $this->member = $member;
        }
    }
public function init()
    {
        parent::init();

        // Check we are logged in as a user who can access front end management
        if (!Permission::check("USERS_MANAGE_ACCOUNT")) {
            Security::permissionFailure();
        }

        // Set our member object
        $member = Member::currentUser();

        if ($member instanceof Member) {
            $this->member = $member;
        }
    }
public function init ( ) { parent :: init ( ) ; // Check we are logged in as a user who can access front end management if ( ! Permission :: check ( "USERS_MANAGE_ACCOUNT" ) ) { Security :: permissionFailure ( ) ; } // Set our member object $ member = Member :: currentUser ( ) ; if ( $ member instanceof Member ) { $ this -> member = $ member ; } }
Perorm setup when this controller is initialised

@return void
Perorm setup when this controller is initialised