Skip to content

Commit

Permalink
rename access reference
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Dec 13, 2024
1 parent a3c9f93 commit 3fee931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecc/blocks/ecc-dashboard/ecc-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export default async function init(el) {
return;
}

await initProfileLogicTree('events-dashboard', {
await initProfileLogicTree('ecc-dashboard', {
noProfile: () => {
signIn();
},
Expand Down
6 changes: 3 additions & 3 deletions ecc/scripts/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,19 @@ export function userHasAccessToEvent(user, eventId) {
export function userHasAccessToView(user, blockName) {
const { role } = user;
const managerAccess = [
'events-dashboard',
'ecc-dashboard',
'event-creation-form',
'series-dashboard',
'series-creation-form',
];

const creatorAccess = [
'events-dashboard',
'ecc-dashboard',
'event-creation-form',
];

const editorAccess = [
'events-dashboard',
'ecc-dashboard',
'event-creation-form',
];

Expand Down

0 comments on commit 3fee931

Please sign in to comment.