unfortunately these functions are necessary because the user model attributes won't work with functions that have a user_passes_test decorator.