From 877383679c80ae6b4a2dbf553019efd904e5360a Mon Sep 17 00:00:00 2001 From: ibuler Date: Sat, 21 Nov 2015 14:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0api=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jperm/perm_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jperm/perm_api.py b/jperm/perm_api.py index 9d893181e..cc078db8b 100644 --- a/jperm/perm_api.py +++ b/jperm/perm_api.py @@ -12,6 +12,7 @@ from jperm.models import PermRule def get_group_user_perm(ob): """ + ob为用户或用户组 获取用户、用户组授权的资产、资产组 return: {’asset_group': { @@ -72,6 +73,7 @@ def get_group_user_perm(ob): def get_group_asset_perm(ob): """ + ob为资产或资产组 获取资产,资产组授权的用户,用户组 return: {’user_group': { @@ -132,6 +134,7 @@ def get_group_asset_perm(ob): def gen_resource(ob): """ + ob为用户或资产列表或资产queryset 生成MyInventory需要的 resource文件 """ res = []