Skip to content
Snippets Groups Projects
Commit 0b9bd1a8 authored by Jan Mach's avatar Jan Mach
Browse files

Removed unnecessary authorization checks.

Requiring any user role is the same as requiring user to be authenticated, so these checks were unnecessary.
parent 5921ff39
No related branches found
No related tags found
No related merge requests found
......@@ -163,8 +163,6 @@ class MyQueriesView(HTMLMixin, PsycopgMixin, SimpleView):
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'queries_my'
......@@ -226,8 +224,6 @@ class QueryStatusView(AJAXMixin, PsycopgMixin, RenderableView):
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'query-status'
......@@ -286,8 +282,6 @@ class AbstractQueryStopView(PsycopgMixin, RenderableView): # pylint: disable=lo
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_icon(cls):
return 'action-stop'
......
......@@ -74,8 +74,6 @@ class AbstractSearchView(RenderableView): # pylint: disable=locally-disabled,ab
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Search DNS')
......
......@@ -78,8 +78,6 @@ class AbstractSearchView(PsycopgMixin, BaseSearchView): # pylint: disable=local
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Search event database')
......@@ -173,8 +171,6 @@ class AbstractShowView(PsycopgMixin, ItemShowView): # pylint: disable=locally-d
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Show event')
......@@ -231,8 +227,6 @@ class DownloadView(PsycopgMixin, BaseView):
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'download'
......@@ -293,8 +287,6 @@ class AbstractDashboardView(SQLAlchemyMixin, BaseSearchView): # pylint: disable
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_icon(cls):
return 'module-{}'.format(BLUEPRINT_NAME)
......@@ -407,8 +399,6 @@ class APIMetadataView(AJAXMixin, SimpleView):
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
methods = ['GET','POST']
@classmethod
......
......@@ -78,8 +78,6 @@ class AbstractSearchView(RenderableView): # pylint: disable=locally-disabled,ab
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Search GeoIP')
......
......@@ -75,8 +75,6 @@ class AbstractSearchView(RenderableView): # pylint: disable=locally-disabled,ab
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Search NERD')
......
......@@ -75,8 +75,6 @@ class AbstractSearchView(RenderableView): # pylint: disable=locally-disabled,ab
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Search PassiveDNS')
......
......@@ -41,8 +41,6 @@ class ViewView(HTMLMixin, SimpleView):
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'view'
......@@ -98,8 +96,6 @@ class DataView(FileNameView):
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'data'
......@@ -119,8 +115,6 @@ class RRDDBView(FileNameView):
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'rrds'
......
......@@ -105,8 +105,6 @@ class SearchView(HTMLMixin, SQLAlchemyMixin, BaseSearchView): # pylint: disable
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_icon(cls):
return 'module-{}'.format(cls.module_name)
......@@ -387,8 +385,6 @@ class DashboardView(HTMLMixin, SQLAlchemyMixin, BaseSearchView): # pylint: disa
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'dashboard'
......@@ -523,8 +519,6 @@ class FeedbackView(AJAXMixin, RenderableView):
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_name(cls):
return 'feedback'
......
......@@ -102,8 +102,6 @@ class AbstractSearchView(PsycopgMixin, CustomSearchView): # pylint: disable=loc
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
url_params_unsupported = ('page', 'sortby')
@classmethod
......@@ -380,8 +378,6 @@ class AbstractLegacySearchView(PsycopgMixin, BaseSearchView): # pylint: disable
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
url_params_unsupported = ('page', 'limit', 'sortby')
@classmethod
......
......@@ -81,8 +81,6 @@ class AbstractSearchView(RenderableView): # pylint: disable=locally-disabled,ab
"""
authentication = True
authorization = [vial.acl.PERMISSION_ANY]
@classmethod
def get_view_title(cls, **kwargs):
return lazy_gettext('Search local WHOIS')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment