diff --git a/Gemfile b/Gemfile index bd596d75c..9e19475ea 100644 --- a/Gemfile +++ b/Gemfile @@ -41,7 +41,6 @@ gem 'omniauth-rails_csrf_protection' gem 'postmark-rails' gem 'prophet-rb', '~> 0.5.3' gem 'puma' -gem 'pundit' gem 'rails', '8.0.1' gem 'rails-html-sanitizer' gem 'rack-cors', '~> 2.0' diff --git a/Gemfile.lock b/Gemfile.lock index e04a11fc9..170220776 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -362,8 +362,6 @@ GEM public_suffix (6.0.1) puma (6.5.0) nio4r (~> 2.0) - pundit (2.4.0) - activesupport (>= 3.0.0) raabro (1.4.0) racc (1.8.1) rack (3.1.8) @@ -591,7 +589,6 @@ DEPENDENCIES postmark-rails prophet-rb (~> 0.5.3) puma - pundit rack-cors (~> 2.0) rails (= 8.0.1) rails-controller-testing diff --git a/app/assets/javascripts/components/archive_case/_modal.html b/app/assets/javascripts/components/archive_case/_modal.html index 0457d65aa..a9b344a39 100644 --- a/app/assets/javascripts/components/archive_case/_modal.html +++ b/app/assets/javascripts/components/archive_case/_modal.html @@ -3,14 +3,9 @@
You're about to put this case into deep freeze. You'll be able to unarchive it later through the "Archived Cases" filter in the Case Listings.
-You do not have delete (and archive) permissions for cases.
--
You're about to put this case into deep freeze. You'll be able to unarchive it later through the "Archived Cases" filter in the Case Listings.
You're about to put this search endpoint into deep freeze. You'll be able to unarchive it later through the "Archived Search Endpoints" filter in the Search Endpoint Listings.
-You do not have delete (and archive) permissions for search endpoints.
--
You're about to delete this case forever! If you think you might want it later, use the Archive function instead.
-You do not have delete permissions for cases.
+You're about to delete this case forever! If you think you might want it later, use the Archive function instead.
You're about to delete this scorer forever!
-You do not have delete permissions for scorers.
+You're about to delete this scorer forever!
You do not have edit permissions for cases.
-Loading your teams, this will be quick I promise! diff --git a/app/assets/javascripts/components/judgements/judgements_modal_instance_controller.js b/app/assets/javascripts/components/judgements/judgements_modal_instance_controller.js index 3e1b23902..151b418eb 100644 --- a/app/assets/javascripts/components/judgements/judgements_modal_instance_controller.js +++ b/app/assets/javascripts/components/judgements/judgements_modal_instance_controller.js @@ -26,20 +26,11 @@ angular.module('QuepidApp') ) { var ctrl = this; - ctrl.canUpdateCase = false; - ctrl.canCreateTeam = false; ctrl.refreshOnly = false; ctrl.updateAssociatedBook = false; ctrl.populateJudgements = false; ctrl.createMissingQueries = false; - $rootScope.$watch('currentUser', function() { - if ( $rootScope.currentUser ) { - ctrl.canUpdateCase = $rootScope.currentUser.permissions.case.update; - ctrl.canCreateTeam = $rootScope.currentUser.permissions.team.create; - } - }); - // why do we do this pattern? ctrl.share = { acase: acase, diff --git a/app/assets/javascripts/components/new_case/_denied_modal.html b/app/assets/javascripts/components/new_case/_denied_modal.html deleted file mode 100644 index 4cd26ec51..000000000 --- a/app/assets/javascripts/components/new_case/_denied_modal.html +++ /dev/null @@ -1,23 +0,0 @@ -
- You don't have permission to create a case. -
- -- However, since everyone currently has unlimited permissions, this is probably a bug. -
- -- Please contact Quepid Qommunity and report this! -
-You do not have edit permissions for teams.
-You're about to remove {{ ctrl.thisMember.display_name }} from the team {{ ctrl.thisTeam.name }}.
You do not have edit permissions for teams.
-You're about to remove {{ ctrl.thisScorer.name }} from the team {{ ctrl.thisTeam.name }}. This does NOT delete the scorer.
You do not have edit permissions for cases.
-Loading your teams, this will be quick I promise! @@ -47,21 +44,21 @@
You do not have edit permissions for cases.
-Loading your teams, this will be quick I promise! @@ -46,21 +44,21 @@