diff --git a/src/ai/backend/manager/models/gql_models/image.py b/src/ai/backend/manager/models/gql_models/image.py index 663c26b8473..0496b386b0a 100644 --- a/src/ai/backend/manager/models/gql_models/image.py +++ b/src/ai/backend/manager/models/gql_models/image.py @@ -471,7 +471,8 @@ def from_row( return None image_ref = row.image_ref version, ptag_set = image_ref.tag_set - return cls( + + result = cls( id=row.id, row_id=row.id, name=row.image, @@ -500,6 +501,9 @@ def from_row( aliases=[alias_row.alias for alias_row in row.aliases], ) + result.permissions = [] if permissions is None else permissions + return result + @classmethod def from_legacy_image( cls, row: Image, *, permissions: Optional[Iterable[ImagePermission]] = None