Prototype website for VPN service, Bitcoin payments via the Blockchain.info API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
217 B

10 years ago
  1. from flask.ext.security import current_user
  2. from flask.ext.admin import AdminIndexView, BaseView, expose
  3. class AdminIndex(AdminIndexView):
  4. def is_accessible(self):
  5. return current_user.has_role('Admin')