aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/collection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/models/collection.rs')
-rw-r--r--src/db/models/collection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/models/collection.rs b/src/db/models/collection.rs
index c6047aa7..e2b58cf1 100644
--- a/src/db/models/collection.rs
+++ b/src/db/models/collection.rs
@@ -146,7 +146,7 @@ impl Collection {
.filter(
users_collections::collection_uuid.eq(uuid).or( // Directly accessed collection
users_organizations::access_all.eq(true).or( // access_all in Organization
- users_organizations::type_.le(UserOrgType::Admin as i32) // Org admin or owner
+ users_organizations::atype.le(UserOrgType::Admin as i32) // Org admin or owner
)
)
).select(collections::all_columns)