Skip to content

Commit fd5d83f

Browse files
committed
fixup! RD: Add basic support for security policies
1 parent 75218c1 commit fd5d83f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

aiocoap/cli/rd.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# This file is part of the Python aiocoap library project.
32
#
43
# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
@@ -710,9 +709,6 @@ async def render_get(self, request):
710709
if not self._get_permissions(request) & CommonRD.SecurityPolicy.Permissions.READ:
711710
raise error.Unauthorized("Operation not allowed due to security policy")
712711

713-
if not permissions & CommonRD.SecurityPolicy.Permissions.READ:
714-
raise error.Unauthorized("Operation not allowed due to security policy")
715-
716712
return link_format_from_message(request, self.reg.links)
717713

718714
def _update_params(self, msg):

0 commit comments

Comments
 (0)