diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-07-18 19:21:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 5587f5afd5d21c2294ef7db8c4eebcdb68e5f2ac (patch) | |
tree | 08efbe0d3c5ae2d2971fcc4d3296156765485af1 /include/odhtdb/Database.hpp | |
parent | 25c40e9448dd182913092876ebc341d8022c0997 (diff) |
Add method to get user lowest permission level
Diffstat (limited to 'include/odhtdb/Database.hpp')
-rw-r--r-- | include/odhtdb/Database.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/odhtdb/Database.hpp b/include/odhtdb/Database.hpp index 85207a0..372b19c 100644 --- a/include/odhtdb/Database.hpp +++ b/include/odhtdb/Database.hpp @@ -209,6 +209,9 @@ namespace odhtdb MapHash<StoredNodeInfo> getStoredNodeUserInfoDecrypted(const std::string &username, const std::string &password) const; std::vector<OwnedByteArray> getUserGroups(const Hash &nodeHash, const Signature::PublicKey &userPublicKey) const; + + // Returns -1 on failure + int getUserLowestPermissionLevel(const Hash &nodeHash, const Signature::PublicKey &userPublicKey) const; std::future<size_t> receiveCustomMessage(const dht::InfoHash &requestKey, ReceiveCustomMessageCallbackFunc callbackFunc); |