diff --git a/api/mysagw/identity/serializers.py b/api/mysagw/identity/serializers.py index 6904a3883..1d08cdbd4 100644 --- a/api/mysagw/identity/serializers.py +++ b/api/mysagw/identity/serializers.py @@ -288,7 +288,7 @@ class MyOrgsSerializer(MeSerializer): def get_is_authorized(self, obj): identity = self.context["request"].user.identity - return obj.members.filter(identity=identity, authorized=True).exists() + return obj in identity.authorized_for class Meta: model = models.Identity