Skip to content

Commit

Permalink
fix: webpath access level value in API
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Mar 26, 2024
1 parent 526253e commit 6cddd67
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cms/contexts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ def to_representation(self, instance):
alias = WebPathSerializer(instance.alias)
data['alias'] = alias.data
data['full_name'] = instance.__str__()
data['access'] = '1'
for t in AUTH_USER_GROUPS:
if t[0] == instance.access:
data['access'] = t[1]
break;
request = self.context.get('request', None)
if request and request.user:
context_permissions = dict(CMS_CONTEXT_PERMISSIONS)
Expand Down

0 comments on commit 6cddd67

Please sign in to comment.