Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit d2b519c
Author: Roman <[email protected]>
Date:   Thu Oct 26 15:00:05 2023 +0200

    Align to redturtle.prenotazioni newest version
  • Loading branch information
folix-01 committed Oct 30, 2023
1 parent dc5d291 commit 607c341
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 607c341

Please sign in to comment.