Skip to content

Commit

Permalink
fixup! RD: Add basic support for security policies
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix committed Oct 15, 2021
1 parent 75218c1 commit fd5d83f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions aiocoap/cli/rd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# This file is part of the Python aiocoap library project.
#
# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
Expand Down Expand Up @@ -710,9 +709,6 @@ async def render_get(self, request):
if not self._get_permissions(request) & CommonRD.SecurityPolicy.Permissions.READ:
raise error.Unauthorized("Operation not allowed due to security policy")

if not permissions & CommonRD.SecurityPolicy.Permissions.READ:
raise error.Unauthorized("Operation not allowed due to security policy")

return link_format_from_message(request, self.reg.links)

def _update_params(self, msg):
Expand Down

0 comments on commit fd5d83f

Please sign in to comment.