Skip to content

Commit

Permalink
Revert "Squashed commit of the following:"
Browse files Browse the repository at this point in the history
This reverts commit 607c341.
  • Loading branch information
folix-01 committed Oct 30, 2023
1 parent 607c341 commit 5e0b976
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
from plone.restapi.interfaces import ISerializeToJson, ISerializeToJsonSummary
from plone.restapi.serializer.summary import DefaultJSONSummarySerializer
from redturtle.prenotazioni.content.prenotazioni_folder import IPrenotazioniFolder
from plone.restapi.serializer.dxcontent import SerializeFolderToJson
from redturtle.prenotazioni.restapi.serializers.adapters.prenotazioni_folder import (
PrenotazioniFolderSerializer,
)
from zope.component import adapter
from zope.interface import implementer

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

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

0 comments on commit 5e0b976

Please sign in to comment.