Browse Source

pref: 修改 accounts list url

pull/9075/head
ibuler 2 years ago
parent
commit
9d0e2b2872
  1. 5
      apps/perms/urls/asset_permission.py

5
apps/perms/urls/asset_permission.py

@ -69,11 +69,8 @@ user_permission_urlpatterns = [
name='my-ungrouped-assets'), name='my-ungrouped-assets'),
# 获取授权给用户某个资产的所有账号 # 获取授权给用户某个资产的所有账号
path('<uuid:pk>/assets/<uuid:asset_id>/accounts/', api.UserGrantedAssetAccountsApi.as_view(), path('<str:user>/assets/<uuid:asset_id>/accounts/', api.UserGrantedAssetAccountsApi.as_view(),
name='user-asset-accounts'), name='user-asset-accounts'),
path('/((?P<user>[^/.]+)/)?assets/<uuid:asset_id>/accounts/',
api.UserGrantedAssetAccountsApi.as_view(),
name='my-asset-accounts'),
] ]
user_group_permission_urlpatterns = [ user_group_permission_urlpatterns = [

Loading…
Cancel
Save