Daniel García
2 months ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
3 deletions
-
src/db/models/collection.rs
|
|
@ -654,9 +654,7 @@ impl Collection { |
|
|
.filter(collections::org_uuid.eq(&org_uuid)) |
|
|
.filter(collections::org_uuid.eq(&org_uuid)) |
|
|
.filter( |
|
|
.filter( |
|
|
// Manage permission on a collection assigned directly or via a group.
|
|
|
// Manage permission on a collection assigned directly or via a group.
|
|
|
users_collections::manage |
|
|
users_collections::manage.eq(true).or(collections_groups::manage.eq(true)), |
|
|
.eq(true) |
|
|
|
|
|
.or(collections_groups::manage.eq(true)), |
|
|
|
|
|
) |
|
|
) |
|
|
.count() |
|
|
.count() |
|
|
.first::<i64>(conn) |
|
|
.first::<i64>(conn) |
|
|
|