-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(2fa): Allow org to reset member 2fa #11152
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
Conversation
| attrs[item]['permissions'] = permissions[item.id] | ||
|
|
||
| # org can reset 2FA if the user is only in one org | ||
| attrs[item]['canReset2fa'] = len(memberships[item.id]) == 1 |
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 do users with more than one org get this flag to be true? Should it be true if the user is viewing themself?
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.
Hm I went with no, the user shouldn't be able to reset their 2FA from this page. I think users can only read the member details page, but it takes manager and up permissions to take any action. Thought it would be more consistent to keep this page for managing members, since users can remove their 2FA in user settings. What do you think?
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.
That sounds good to me.
billyvg
left a comment
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.
Nice tests 😎
src/sentry/static/sentry/app/views/settings/organizationMembers/organizationMemberDetail.jsx
Outdated
Show resolved
Hide resolved
src/sentry/static/sentry/app/views/settings/organizationMembers/organizationMemberDetail.jsx
Outdated
Show resolved
Hide resolved
src/sentry/static/sentry/app/views/settings/organizationMembers/organizationMemberDetail.jsx
Outdated
Show resolved
Hide resolved
920c9b9 to
e920797
Compare
billyvg
left a comment
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.
Looks good, thanks!
|
@markstory is this good on your end? |
* master: (56 commits) feat(issues) Add skeleton for Org wide issues (#11420) fix(api): Fix broken spam email blocking code don't need this white background anymore and it causes a bug on hosted setup (#11436) fix(charts): Fix max value for WorldMapChart (#11404) feat(issues): Add issues icon to sidebar (#11439) build: Remove 'exports' from sourcemaps sources prefix (#11438) fix: Render integration description as markdown in search (#11441) ref: Import jquery when it's used (#11430) fix(ui): Render message params (#11432) ref(releases): Refactor projects/organization release overview (#11392) ref(groups): Refactor project group details (#11422) feat(2fa): Allow org to reset member 2fa (#11152) feat(api): Add relative stats period support to get_date_range_from_params (#11380) chore: Remove group-unmerge flag (#11431) fix(ui) Fix 'other' tag bucket to have a proper tooltip (#11433) build(dev): Add `yarn dev` script to start sentry devserver (#11360) ref(charts): Change PercentageBarChart -> PercentageAreaChart (#11401) feat(discover): Zerofill queries that are grouped by time (#11384) test: Add coverage for breadcrumb message scrubbing feat(releases): Add all organization release routes (#11377) ...
Allows 'member:admin' to reset an org member's 2FA, if the member is only in one org and 2FA isn't required.