Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rofe
Copy link
Contributor

@rofe rofe commented Dec 18, 2025

@rofe rofe requested a review from auniverseaway December 18, 2025 14:30
@aem-code-sync
Copy link

aem-code-sync bot commented Dec 18, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync
Copy link

aem-code-sync bot commented Dec 18, 2025

Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

* feat: auto submit form if org and site are provided

* chore: provide feedback if error
kptdobe
kptdobe previously approved these changes Dec 19, 2025
const body = new FormData([['config', JSON.stringify(configJson)]]);
const orgResp = await daFetch(orgUrl, { method: 'PUT', body });
if (!orgResp.ok) {
if (orgResp.status === 401 || orgResp.status === 403) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this really happen ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it prudent to check for... unless we fully trust the window.adobeIMS.isSignedInUser() above?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was more thinking on the api side. If you have a token, the config api should let you in. At least for the moment...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What if the org already exists with different permissions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Onboarding] Make the user that creates the website the "admin" of it

3 participants