Add require_login for some actions and filter items function