Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/policies/invitation_policy.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class InvitationPolicy < ApplicationPolicy
EXTRA_INFO_ROLES = %w[superadmin open_doors policy_and_abuse support tag_wrangling].freeze
FIND_ROLES = %w[superadmin policy_and_abuse support].freeze
FIND_ROLES = %w[superadmin open_doors policy_and_abuse support].freeze
INVITE_FROM_QUEUE_ROLES = %w[superadmin policy_and_abuse].freeze
INVITE_ALL_ROLES = %w[superadmin].freeze

Expand Down
11 changes: 11 additions & 0 deletions features/admins/admin_invitations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,17 @@ Feature: Admin Actions to Manage Invitations
When I follow the first invitation token url
Then I should see "Sender testadmin-policy_and_abuse"

Scenario: An admin with open_doors role can see and use the Track invitations form
Given the user "dax" exists and is activated
And "dax" has "2" invitations
And I am logged in as a "open_doors" admin
When I follow "Invite New Users"
Then I should see "Track invitations"
When I fill in "Username" with "dax"
And I press "Search" within "form.invitation.simple.search"
Then I should see "Copy and use"
And I should see "Delete"

Scenario: An admin can edit an invitation
Given the user "dax" exists and is activated
And "dax" has "2" invitations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
end
end

find_roles = %w[superadmin policy_and_abuse support].freeze
find_roles = %w[superadmin open_doors policy_and_abuse support].freeze

describe "GET #find" do
subject { get :find, params: { invitation: { token: invitation.token } } }
Expand Down
Loading