-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: edit event accessible to user with event roles only #3500
Conversation
let event = this.modelFor('events.view'); | ||
let { currentUser } = this.authManager; | ||
if (!(currentUser.isAnAdmin || currentUser.email === event.owner.get('email') || event.organizers.includes(currentUser) | ||
|| event.coorganizers.includes(currentUser) || event.trackOrganizers.includes(currentUser) |
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.
@shreyanshdwivedi Just make sure if this hierarchy correct, I mean not every event role
should have access to Edit Page
. Confirm with @CosmicCoder96 or @mariobehling once, Else it is gtg.
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.
I think currently we are giving full access to all the event roles. @CosmicCoder96 is there any role which is needed to be removed?
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.
All roles seem fine for now
@kushthedude @uds5501 @mrsaicharan1 please review |
Fixes #3498
Short description of what this resolves:
Currently, any user can access edit page of the event.
Changes proposed in this pull request:
Checklist
development
branch.