Skip to content

Commit 900773e

Browse files
committed
fix user search when editing files
1 parent 3b9a159 commit 900773e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,12 @@ module openflow {
25462546
async handlefilter(e) {
25472547
this.e = e;
25482548
// console.log(e.keyCode);
2549-
var ids: string[] = this.model._acl.map(item => item._id);
2549+
var ids: string[];
2550+
if (this.collection == "files") {
2551+
ids = (this.model as any).metadata._acl.map(item => item._id);
2552+
} else {
2553+
ids = this.model._acl.map(item => item._id);
2554+
}
25502555
this.searchFilteredList = await this.api.Query("users",
25512556
{
25522557
$and: [

0 commit comments

Comments
 (0)