We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75218c1 commit fd5d83fCopy full SHA for fd5d83f
aiocoap/cli/rd.py
@@ -1,4 +1,3 @@
1
-
2
# This file is part of the Python aiocoap library project.
3
#
4
# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
@@ -710,9 +709,6 @@ async def render_get(self, request):
710
709
if not self._get_permissions(request) & CommonRD.SecurityPolicy.Permissions.READ:
711
raise error.Unauthorized("Operation not allowed due to security policy")
712
713
- if not permissions & CommonRD.SecurityPolicy.Permissions.READ:
714
- raise error.Unauthorized("Operation not allowed due to security policy")
715
716
return link_format_from_message(request, self.reg.links)
717
718
def _update_params(self, msg):
0 commit comments