LLViewerInventoryItem* new_item = new LLViewerInventoryItem(LLUUID::generateNewID(), LLAssetType::AT_TEXTURE, 0, "My New Texture", LLUUID::null, LLUUID::null, LLUUID::null, LLAssetStorage::LLAST_LOCAL);
inventory_item->move(new_folder_id);
if (inventory_item->getPermissions().allowOperationBy(PERM_TRANSFER, target_user_id)) { // Allow transfer of item to target user }This checks if the current user has the permission to transfer the given inventory item to the specified target user. Package library: Second Life Viewer Codebase.