Skip to content

Commit

Permalink
Update scopes in prep for ACLs
Browse files Browse the repository at this point in the history
  • Loading branch information
auniverseaway committed Dec 18, 2024
1 parent e8392a8 commit 3ec8d33
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions blocks/shared/pathDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,9 @@ function getRepoDetails({ editor, pathParts, ext }) {
let path = ext === 'html' && !fullPath.endsWith('html') ? `${fullPath}.html` : fullPath;
if (editor === 'sheet' && !path.endsWith('.json')) path = `${path}.${ext}`;

console.log(repo);

// TODO: Fix this later
const tld = repo === 'da-bacom' || repo === 'help' ? '.aem.page' : '.hlx.page';

console.log(tld);

return {
owner: org,
repo,
Expand Down
1 change: 0 additions & 1 deletion blocks/sheet/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export async function getData(url) {

const sheetPanes = document.querySelector('da-sheet-panes');
if (sheetPanes && !url.includes('/versionsource')) {
console.log('set panes');
// Set AEM-formatted JSON for real-time preview
sheetPanes.data = json;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const STYLES = '/styles/styles.css';
const CONFIG = {
codeBase,
imsClientId: 'darkalley',
imsScope: 'ab.manage,additional_info.projectedProductContext,AdobeID,gnav,openid,org.read,read_organizations,session,aem.frontend.all',
imsScope: 'ab.manage,AdobeID,gnav,openid,org.read,read_organizations,session,aem.frontend.all,additional_info.ownerOrg',
decorateArea,
};

Expand Down

0 comments on commit 3ec8d33

Please sign in to comment.