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

from flask.ext.security import current_user
from flask.ext.admin import AdminIndexView, BaseView, expose
class AdminIndex(AdminIndexView):
def is_accessible(self):
return current_user.has_role('Admin')