61711794 Fix is_allowed_for permission checks.