Bugfix: fixed authz check.