-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
[4458] - Restrict non admins to partner users #4468
base: main
Are you sure you want to change the base?
Conversation
@@ -31,6 +42,8 @@ | |||
|
|||
context "with valid user params" do | |||
it "invites a new user and redirects back with notice" do | |||
user.add_role(:org_admin) |
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 you move this to a before(:each)
block?
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.
Fixed it here 129a2b8
|
||
context "when user is not authorized" do | ||
it "does not have access to index template" do | ||
user.add_role(:org_user) |
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 gets added automatically, you don't need to do it.
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.
Fixed it here 129a2b8
@@ -72,6 +73,8 @@ | |||
end | |||
|
|||
it "redirects back with alert if the user role removal fails" do | |||
user.add_role(:org_admin) |
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 line shouldn't be necessary since it's in a before
block, no?
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.
Right. I think I missed this one. Fixed it here f0ab010
Looks like there are failing tests now. |
@napster235 will you be able to fix the tests? |
not any time soon i'm afraid |
Resolves #4458
Description
Type of change
How Has This Been Tested?
Specs were added
Screenshots