Add login-required and permission-required mixins to threshold views.