Update auth_permissions.md

This commit is contained in:
Paulus Schoutsen 2019-03-12 19:16:39 -07:00 committed by GitHub
parent c2785ad0b4
commit 3d955997a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,8 @@ if not user.is_admin:
raise Unauthorized() raise Unauthorized()
# Raise error if user does not have access to an enitty # Raise error if user does not have access to control an entity
# Available policies: POLICY_READ, POLICY_CONTROL, POLICY_EDIT
if not user.permissions.check_entity(entity_id, POLICY_CONTROL): if not user.permissions.check_entity(entity_id, POLICY_CONTROL):
raise Unauthorized() raise Unauthorized()
``` ```