v1 vsersion

This commit is contained in:
pycook
2016-01-01 09:40:47 +08:00
committed by pycook
parent 1edd1ee71a
commit 2d8264ab6f
56 changed files with 5503 additions and 0 deletions

9
permissions.py Normal file
View File

@@ -0,0 +1,9 @@
# -*- coding:utf-8 -*-
from flask.ext.principal import RoleNeed, Permission
admin = Permission(RoleNeed('admin'))
auth = Permission(RoleNeed('authenticated'))
null = Permission(RoleNeed('null'))