Not sure if required but in `submission_user_access` you check if user is not None first: `if user and .....`.