Skip to content

Commit

Permalink
Merge branch 'release_23.2' into release_24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Mar 28, 2024
2 parents d8e4f9d + ea3025d commit 3669cae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions doc/source/admin/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ To enable it, add the following to your Galaxy's `server {}` block:
location /_x_accel_redirect/ {
internal;
alias /;
# Add upstream response headers that would otherwise be omitted
add_header Access-Control-Allow-Origin $upstream_http_access_control_allow_origin;
add_header Access-Control-Allow-Methods $upstream_http_access_control_allow_methods;
}
```

Expand Down
1 change: 0 additions & 1 deletion doc/source/releases/23.2_announce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Administration Notes
* Configuration options are now available for carbon emissions reporting. (`#16307 <https://github.com/galaxyproject/galaxy/pull/16307>`__)
* The pgcleanup script has been modified to allow periodically deleting old datasets; operations can now be restricted to specific object store ids. (`#16340 <https://github.com/galaxyproject/galaxy/pull/16340>`__)
* Tool memory usage has been improved. (`#16536 <https://github.com/galaxyproject/galaxy/pull/16536>`__)
* Documentation added for tool panel and panel view administration. (`#17078 <https://github.com/galaxyproject/galaxy/pull/17078>`__)
* Support added for cgroups-v2 (`#17169 <https://github.com/galaxyproject/galaxy/pull/17169>`__)
* Support added for configuring job metrics inline; documentation improved (`#17178 <https://github.com/galaxyproject/galaxy/pull/17178>`__)

Expand Down
14 changes: 9 additions & 5 deletions lib/galaxy/model/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,12 +765,16 @@ def create_private_user_role(self, user):
return self.get_private_user_role(user)

def get_private_user_role(self, user, auto_create=False):
stmt = select(Role).where(
and_(
UserRoleAssociation.user_id == user.id,
Role.id == UserRoleAssociation.role_id,
Role.type == Role.types.PRIVATE,
stmt = (
select(Role)
.where(
and_(
UserRoleAssociation.user_id == user.id,
Role.id == UserRoleAssociation.role_id,
Role.type == Role.types.PRIVATE,
)
)
.distinct()
)
role = self.sa_session.execute(stmt).scalar_one_or_none()
if not role:
Expand Down

0 comments on commit 3669cae

Please sign in to comment.