-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: event settings visible to admin and owner only #3432
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: event settings visible to admin and owner only #3432
Conversation
1127f08
to
9aef923
Compare
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.
LGTM.
2d02aed
to
aa26f60
Compare
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.
Logic looks LGTM
@CosmicCoder96 @mrsaicharan1 please review |
f499fa4
60d47a9
to
f499fa4
Compare
f499fa4
to
b8ae561
Compare
@CosmicCoder96 please reveiew |
@CosmicCoder96 please review this. |
return this.l10n.t('Settings'); | ||
}, | ||
beforeModel() { | ||
let { currentUser } = this.authManager; |
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.
how can this.authManager
be 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.
This is equivalent to let currentUser = this.authManager.currentUser
Fixes #3354
Short description of what this resolves:
Currently, Event Role of every kind is able to see the following settings which should not be the case
Changes proposed in this pull request:
Settings
as an option only to admin or ownerSettings
, redirect them to event.viewChecklist
development
branch.