We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e8ac95 commit 43db7fcCopy full SHA for 43db7fc
1 file changed
Sources/LocalAuthentication/Schema/Account.swift
@@ -175,8 +175,8 @@ public class Account: PostgresStORM {
175
} else {
176
try? t.select(
177
columns: [],
178
- whereclause: "region = $1",
179
- params: [region],
+ whereclause: "region = $1 AND usertype != $2",
+ params: [region, "manager"],
180
orderby: ["username"],
181
cursor: cursor
182
)
@@ -192,6 +192,8 @@ public class Account: PostgresStORM {
192
r["detail"] = row.detail
193
r["source"] = row.source
194
r["remoteid"] = row.remoteid
195
+ r["region"] = row.region
196
+ r["company"] = row.company
197
users.append(r)
198
}
199
return users
0 commit comments