Skip to content

Commit

Permalink
Merge pull request dani-garcia#2933 from stefan0xC/fix-manager-issue
Browse files Browse the repository at this point in the history
allow managers to set groups of a collection
  • Loading branch information
dani-garcia committed Nov 27, 2022
2 parents 39ae2f1 + e27a5be commit f3beaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ async fn _restore_organization_user(
}

#[get("/organizations/<org_id>/groups")]
async fn get_groups(org_id: String, _headers: AdminHeaders, mut conn: DbConn) -> JsonResult {
async fn get_groups(org_id: String, _headers: ManagerHeadersLoose, mut conn: DbConn) -> JsonResult {
let groups = Group::find_by_organization(&org_id, &mut conn).await.iter().map(Group::to_json).collect::<Value>();

Ok(Json(json!({
Expand Down

0 comments on commit f3beaea

Please sign in to comment.