fixed granted permissions
This commit is contained in:
parent
356822a0c5
commit
54c9dbda99
@ -5653,7 +5653,7 @@ CommandResult ConnectedClient::handleCommandPermOverview(Command &cmd) {
|
|||||||
result[index]["s"] = permission.flags.skip;
|
result[index]["s"] = permission.flags.skip;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
if(permission.flags.skip) {
|
if(permission.flags.grant_set) {
|
||||||
result[index]["t"] = 0; /* server group */
|
result[index]["t"] = 0; /* server group */
|
||||||
result[index]["id1"] = server_group->group->groupId();
|
result[index]["id1"] = server_group->group->groupId();
|
||||||
result[index]["id2"] = 0;
|
result[index]["id2"] = 0;
|
||||||
@ -5681,7 +5681,7 @@ CommandResult ConnectedClient::handleCommandPermOverview(Command &cmd) {
|
|||||||
result[index]["s"] = permission.flags.skip;
|
result[index]["s"] = permission.flags.skip;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
if(permission.flags.skip) {
|
if(permission.flags.grant_set) {
|
||||||
result[index]["t"] = 1; /* client */
|
result[index]["t"] = 1; /* client */
|
||||||
result[index]["id1"] = client_dbid;
|
result[index]["id1"] = client_dbid;
|
||||||
result[index]["id2"] = 0;
|
result[index]["id2"] = 0;
|
||||||
@ -5710,7 +5710,7 @@ CommandResult ConnectedClient::handleCommandPermOverview(Command &cmd) {
|
|||||||
result[index]["s"] = permission.flags.skip;
|
result[index]["s"] = permission.flags.skip;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
if(permission.flags.skip) {
|
if(permission.flags.grant_set) {
|
||||||
result[index]["t"] = 2; /* server channel */
|
result[index]["t"] = 2; /* server channel */
|
||||||
result[index]["id1"] = channel->channelId();
|
result[index]["id1"] = channel->channelId();
|
||||||
result[index]["id2"] = 0;
|
result[index]["id2"] = 0;
|
||||||
@ -5739,7 +5739,7 @@ CommandResult ConnectedClient::handleCommandPermOverview(Command &cmd) {
|
|||||||
result[index]["s"] = permission.flags.skip;
|
result[index]["s"] = permission.flags.skip;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
if(permission.flags.skip) {
|
if(permission.flags.grant_set) {
|
||||||
result[index]["t"] = 3; /* channel group */
|
result[index]["t"] = 3; /* channel group */
|
||||||
result[index]["id1"] = channel_group->channelId;
|
result[index]["id1"] = channel_group->channelId;
|
||||||
result[index]["id2"] = channel_group->group->groupId();
|
result[index]["id2"] = channel_group->group->groupId();
|
||||||
@ -5767,7 +5767,7 @@ CommandResult ConnectedClient::handleCommandPermOverview(Command &cmd) {
|
|||||||
result[index]["s"] = permission.flags.skip;
|
result[index]["s"] = permission.flags.skip;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
if(permission.flags.skip) {
|
if(permission.flags.grant_set) {
|
||||||
result[index]["t"] = 1; /* client */
|
result[index]["t"] = 1; /* client */
|
||||||
result[index]["id1"] = std::get<1>(permission_data);
|
result[index]["id1"] = std::get<1>(permission_data);
|
||||||
result[index]["id2"] = client_dbid;
|
result[index]["id2"] = client_dbid;
|
||||||
|
Loading…
Reference in New Issue
Block a user