Skip to content

chore: return organization's display name and icon in templates #13858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 10, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jul 9, 2024

No description provided.

@Emyrk Emyrk changed the title chore: templates return organization display name and icon chore: return organization's display name and icon in templates Jul 9, 2024
@Emyrk Emyrk requested a review from f0ssel July 9, 2024 22:03
LEFT JOIN
visible_users
ON
templates.created_by = visible_users.id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that the created_by user is not visible by the caller of this? I'm thinking the case where someone is removed from an org after creating a template.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but we decided awhile back that if you can read the template, you should also see who created it. So granting read permission on the template gives some implicit permission to reading the user's name + organization information.

@Emyrk Emyrk force-pushed the stevenmasley/organization_display_name_with_template branch from 45bbfca to 8cae3e3 Compare July 10, 2024 14:42
@Emyrk Emyrk merged commit 7bb3e0d into main Jul 10, 2024
31 of 32 checks passed
@Emyrk Emyrk deleted the stevenmasley/organization_display_name_with_template branch July 10, 2024 15:06
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants