Skip to content

Commit 9930441

Browse files
committed
12
1 parent c376fdd commit 9930441

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

OpenFlow/src/DatabaseConnection.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export class DatabaseConnection {
108108
if (ace._id != WellknownIds.admins && ace._id != WellknownIds.root) {
109109
item.removeRight(ace._id, [Rights.read]);
110110
}
111-
112111
} else {
113112
item.addRight(ace._id, ace.name, [Rights.read]);
114113
}
@@ -161,11 +160,10 @@ export class DatabaseConnection {
161160
for (var i = removed.length - 1; i >= 0; i--) {
162161
var ace = removed[i];
163162

164-
if (multi_tenant_skip.indexOf(item._id) > -1) {
165-
item.removeRight(ace._id, [Rights.read]);
166-
} else {
163+
if (ace._id != WellknownIds.admins && ace._id != WellknownIds.root) {
167164
item.removeRight(ace._id, [Rights.read]);
168165
}
166+
169167
var arr = await this.db.collection("users").find({ _id: ace._id }).project({ name: 1, _acl: 1, _type: 1 }).limit(1).toArray();
170168
if (arr.length == 1 && item._id != WellknownIds.admins && item._id != WellknownIds.root) {
171169
if (Config.multi_tenant && multi_tenant_skip.indexOf(item._id) > -1) {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.415
1+
0.0.416

0 commit comments

Comments
 (0)