]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/server/serverinventorymgr.h
Protect per-player detached inventory actions
[dragonfireclient.git] / src / server / serverinventorymgr.h
index ccf6d3b2e49b3083eb3bbbd2f79b9eb5b569fee6..0e4b7241537e63b4128449fed4ae63286cbfbc23 100644 (file)
@@ -43,6 +43,7 @@ class ServerInventoryManager : public InventoryManager
        Inventory *createDetachedInventory(const std::string &name, IItemDefManager *idef,
                        const std::string &player = "");
        bool removeDetachedInventory(const std::string &name);
+       bool checkDetachedInventoryAccess(const InventoryLocation &loc, const std::string &player) const;
 
        void sendDetachedInventories(const std::string &peer_name, bool incremental,
                        std::function<void(const std::string &, Inventory *)> apply_cb);