-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
4819 manage super user roles #5047
Open
Benjamin-Couey
wants to merge
26
commits into
rubyforgood:main
Choose a base branch
from
Benjamin-Couey:4819-manage-super-user-roles
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9e1376b
Updated organization user table to show edit options for super admins…
Benjamin-Couey d719cd4
Fixed error trying to access super admin role's resource
Benjamin-Couey 7f51385
Updated organization user table to always show edit user button to su…
Benjamin-Couey 156e02b
Added tests to specify org admins can promote and demote users
Benjamin-Couey a97ebc1
Updated tests to run on both normal and super admin users
Benjamin-Couey ccab0f0
Updated organisation request tests to run on both normal and super ad…
Benjamin-Couey ed54cba
Moved checks on request handled by admin controller to more appropria…
Benjamin-Couey a40b865
Added user factory to create super admin that is also an org admin
Benjamin-Couey 151337f
Updated shared_examples to handle both normal users and super admins …
Benjamin-Couey 4f87454
Forgot to have org system tests also test with a super admin logged in
Benjamin-Couey 8841ea4
Fixed dropdown div always being there instead of only when the dropdo…
Benjamin-Couey ba34e7a
Updated admin user request tests to run on both normal and super admi…
Benjamin-Couey 2043e09
Updated add role system test to run on both normal and super admin us…
Benjamin-Couey da53615
Changes made by linter
Benjamin-Couey 4f1aaa9
Merge branch 'main' into 4819-manage-super-user-roles
Benjamin-Couey 7ecca27
Changed kind to org_role as it was only used on org user list, made i…
Benjamin-Couey a1307e0
Merge branch 'main' into 4819-manage-super-user-roles
Benjamin-Couey 0a34a21
Updated org user list to show promote/demote buttons to super admins,…
Benjamin-Couey d7d78b0
Fixed context not actually signing in as a super admin
Benjamin-Couey 664fa63
Merge branch 'main' into 4819-manage-super-user-roles
Benjamin-Couey c0d9283
Removed tests for #show while logged in as super admin as, while the …
Benjamin-Couey 2e59b55
Refactored promote, demote, remove user shared_examples to explicilty…
Benjamin-Couey a918ab3
Merge branch 'main' into 4819-manage-super-user-roles
Benjamin-Couey 931a89b
Forgot to run linter
Benjamin-Couey 32ca8e2
Undid changes that replaced has_role_cached? with has_role?
Benjamin-Couey 9649829
Merge branch 'main' into 4819-manage-super-user-roles
Benjamin-Couey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we do
user.has_cached_role?
here?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.
Can do. In the most recent commit I addressed this in this file and
app/models/item.rb
.