From 9d0e2b287216484763c1e8ef05d54c1637896a24 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 15 Nov 2022 15:47:32 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=BF=AE=E6=94=B9=20accounts=20list=20?= =?UTF-8?q?url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/perms/urls/asset_permission.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/perms/urls/asset_permission.py b/apps/perms/urls/asset_permission.py index cdf502c0f..1273edaac 100644 --- a/apps/perms/urls/asset_permission.py +++ b/apps/perms/urls/asset_permission.py @@ -69,11 +69,8 @@ user_permission_urlpatterns = [ name='my-ungrouped-assets'), # 获取授权给用户某个资产的所有账号 - path('/assets//accounts/', api.UserGrantedAssetAccountsApi.as_view(), + path('/assets//accounts/', api.UserGrantedAssetAccountsApi.as_view(), name='user-asset-accounts'), - path('/((?P[^/.]+)/)?assets//accounts/', - api.UserGrantedAssetAccountsApi.as_view(), - name='my-asset-accounts'), ] user_group_permission_urlpatterns = [