aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Database.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Database.cpp b/src/Database.cpp
index 874b225..82cb21e 100644
--- a/src/Database.cpp
+++ b/src/Database.cpp
@@ -476,15 +476,6 @@ namespace odhtdb
void Database::addUser(const DatabaseNode &nodeInfo, const Signature::KeyPair &userToPerformActionWith, const Signature::PublicKey &userToAddPublicKey, const DataView &groupToAddUserTo)
{
- if(!databaseStorage.isUserAllowedToAddUserToGroupInNode(*nodeInfo.getRequestHash(), userToPerformActionWith.getPublicKey(), groupToAddUserTo))
- {
- string errMsg = "The user ";
- errMsg += userToPerformActionWith.getPublicKey().toString();
- errMsg += " does not belong to any group that is allowed to add an user to the group ";
- errMsg += bin2hex((const char*)groupToAddUserTo.data, groupToAddUserTo.size).c_str();
- throw PermissionDeniedException(errMsg);
- }
-
sibs::SafeSerializer serializer;
serializer.add(DATABASE_ADD_PACKET_STRUCTURE_VERSION);
u64 timestampCombined = getSyncedTimestampUtc().getCombined();