Skip to content

Commit

Permalink
Align to redturtle.prenotazioni newest version
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 authored Oct 26, 2023
1 parent 932795d commit d2b519c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from plone.restapi.interfaces import ISerializeToJson, ISerializeToJsonSummary
from plone.restapi.serializer.summary import DefaultJSONSummarySerializer
from redturtle.prenotazioni.content.prenotazioni_folder import IPrenotazioniFolder
from redturtle.prenotazioni.restapi.serializers.adapters.prenotazioni_folder import (
PrenotazioniFolderSerializer,
)
from plone.restapi.serializer.dxcontent import SerializeFolderToJson
from zope.component import adapter
from zope.interface import implementer

Expand Down Expand Up @@ -39,7 +37,7 @@ def __call__(self, *args, **kwargs):

@implementer(ISerializeToJson)
@adapter(IPrenotazioniFolder, IDesignPloneIoprenotoLayer)
class SerializePrenotazioniFolderToJson(PrenotazioniFolderSerializer):
class SerializePrenotazioniFolderToJson(SerializeFolderToJson):
def __call__(self, *args, **kwargs):
resp = super().__call__(*args, **kwargs)
if not api.user.has_permission(
Expand Down

0 comments on commit d2b519c

Please sign in to comment.