Fixed argument name in the example. (#251)

This commit is contained in:
Tomer Figenblat 2019-05-09 06:20:13 +03:00 committed by Paulus Schoutsen
parent 9fe71d2dc0
commit 950ab7307d

View File

@ -179,14 +179,14 @@ async def handle_entity_service(call):
raise UnknownUser( raise UnknownUser(
context=call.context, context=call.context,
entity_id=entity_id, entity_id=entity_id,
policy=POLICY_CONTROL, permission=POLICY_CONTROL,
) )
if not user.permissions.check_entity(entity_id, POLICY_CONTROL): if not user.permissions.check_entity(entity_id, POLICY_CONTROL):
raise Unauthorized( raise Unauthorized(
context=call.context, context=call.context,
entity_id=entity_id, entity_id=entity_id,
policy=POLICY_CONTROL, permission=POLICY_CONTROL,
) )
# Do action on entity # Do action on entity