Skip to content

Commit

Permalink
Switch to JsonRequestHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
onejgordon committed Apr 1, 2017
1 parent c1c3efb commit af9e117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion actions/adminActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get(self, d):
self.json_out({'message': message})


class Hacks(handlers.BaseRequestHandler):
class Hacks(handlers.JsonRequestHandler):
@authorized.role("admin")
def get(self, d):
hack_id = self.request.get('hack_id')
Expand Down
1 change: 1 addition & 0 deletions authorized.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from models import User
import logging


def role(role=None):
def wrapper(handler_method):
def check_login(self, *args, **kwargs):
Expand Down

0 comments on commit af9e117

Please sign in to comment.