Skip to content

Commit

Permalink
Fix bug where logged-in users can't see org details
Browse files Browse the repository at this point in the history
  • Loading branch information
xylo04 committed Sep 20, 2024
1 parent 2a799f2 commit 25c7e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/org-detail/org-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class OrgDetailComponent {
if (!user || !org) {
return false;
}
return user.admin || user.manages.some((m) => m.id === org.id);
return user.admin || user.manages?.some((m) => m.id === org.id);
},
);
editMode: boolean = false;
Expand Down

0 comments on commit 25c7e74

Please sign in to comment.