move admin/users to be accessed only by site admins

This commit is contained in:
shlok007 2017-07-14 21:09:28 +05:30 committed by Shlok Srivastava
parent edd0024a17
commit 80a9544279
5 changed files with 22 additions and 1 deletions

View file

@ -237,6 +237,12 @@ feature 'Has correct abilities' do
visit admin_conference_program_tracks_path(conference.short_title)
expect(current_path).to eq(root_path)
visit admin_users_path
expect(current_path).to eq(root_path)
visit admin_user_path(user_info_desk)
expect(current_path).to eq(root_path)
visit admin_conference_emails_path(conference.short_title)
expect(current_path).to eq(root_path)
end