diff --git a/aiocoap/cli/rd.py b/aiocoap/cli/rd.py index 5e01bf30..7b3296ff 100644 --- a/aiocoap/cli/rd.py +++ b/aiocoap/cli/rd.py @@ -1,4 +1,3 @@ - # This file is part of the Python aiocoap library project. # # Copyright (c) 2012-2014 Maciej Wasilak , @@ -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):