-
Notifications
You must be signed in to change notification settings - Fork 875
fix: only show valid organizations in CreateTemplateForm
#14174
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
Conversation
hide any organizations that the user might have view permissions for, but not permission to create a template
🤖 Meticulous spotted visual differences in 82 of 735 screens tested: view and approve differences detected. Last updated for commit 37b84eb. This comment will update as new commits are pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permission LG 👍
{
"object":{
"resource_type":"template",
"organization_id:" <org_id>
},
"action":"create"
}
site/src/components/OrganizationAutocomplete/OrganizationAutocomplete.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. I just have one minor question. Going to QA this right now 👀
You are right, it is this call: But we only query it for the primary org, which is going to fail for the org-admin in the second org. |
Closes #14004
Hide any organizations that the user might have view permissions for, but not permission to create a template