Skip to content

Commit

Permalink
Using default permission names
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Aug 9, 2015
1 parent 3321a56 commit 221b86b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ def ping():

class Panoramix(BaseView):
@has_access
@permission_name('tables')
@expose("/table/<table_id>/")
def table(self, table_id):

Expand Down Expand Up @@ -203,7 +202,6 @@ def table(self, table_id):
return obj.render()

@has_access
@permission_name('datasources')
@expose("/datasource/<datasource_name>/")
def datasource(self, datasource_name):
viz_type = request.args.get("viz_type")
Expand Down Expand Up @@ -231,7 +229,6 @@ def datasource(self, datasource_name):
return obj.render()

@has_access
@permission_name('refresh_datasources')
@expose("/refresh_datasources/")
def refresh_datasources(self):
session = db.session()
Expand Down

0 comments on commit 221b86b

Please sign in to comment.