Skip to content

Conversation

@maheskett
Copy link
Contributor

Allows 'member:admin' to reset an org member's 2FA, if the member is only in one org and 2FA isn't required.

screen shot 2018-12-26 at 11 10 29 am

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
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

@maheskett maheskett requested a review from billyvg January 3, 2019 19:51
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tests 😎

@maheskett maheskett force-pushed the maheskett/owner-reset-2fa branch from 920c9b9 to e920797 Compare January 4, 2019 19:44
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@maheskett
Copy link
Contributor Author

@markstory is this good on your end?

@maheskett maheskett merged commit 9be1678 into master Jan 9, 2019
@maheskett maheskett deleted the maheskett/owner-reset-2fa branch January 9, 2019 18:59
jan-auer added a commit that referenced this pull request Jan 10, 2019
* 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)
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants