fix context of permission check when inheriting allowed types