diff --git a/bulk_grades/__init__.py b/bulk_grades/__init__.py index 383afa5..781ad28 100644 --- a/bulk_grades/__init__.py +++ b/bulk_grades/__init__.py @@ -4,6 +4,6 @@ from __future__ import absolute_import, unicode_literals -__version__ = '0.5.3' +__version__ = '0.5.4' default_app_config = 'bulk_grades.apps.BulkGradesConfig' # pylint: disable=invalid-name diff --git a/bulk_grades/views.py b/bulk_grades/views.py index 70df48c..cbc38bc 100644 --- a/bulk_grades/views.py +++ b/bulk_grades/views.py @@ -44,8 +44,6 @@ def dispatch(self, request, course_id, *args, **kwargs): # pylint: disable=argu """ Dispatch django request. """ - if not (request.user.is_staff or request.user.has_perm('bulk_grades', course_id)): - return HttpResponseForbidden('Not Staff') self.initialize_processor(request, course_id) return super(GradeOnlyExport, self).dispatch(request, course_id, *args, **kwargs) @@ -156,14 +154,6 @@ def get(self, request, course_id): history = processor.get_committed_history() return HttpResponse(json.dumps(history), content_type='application/json') - def dispatch(self, request, course_id, *args, **kwargs): # pylint: disable=arguments-differ - """ - General set-up method for all handler messages in this view. - """ - if not (request.user.is_staff or request.user.has_perm('bulk_grades', course_id)): - return HttpResponseForbidden('Not Staff') - return super(GradeOperationHistoryView, self).dispatch(request, course_id, *args, **kwargs) - class InterventionsExport(GradeOnlyExport): """