review doc::hasPermission