def can_be_authorised_by(self, user=None):
        if user is None:
            return True
        if self.primary_user:
            return user == self.primary_user
        secondary_users = self.secondary_users.all()
        if secondary_users.count() > 0:
            return user in secondary_users
        return True
Called when a new appinfo is read from disk on each request.
dataset/ETHPy150Open django-oscar/django-oscar-accounts/src/oscar_accounts/abstract_models.py/Account.can_be_authorised_by--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/dev_appserver_multiprocess.py/DevProcess.NewAppInfo