fix: role assignments list should include matched policies

This commit is contained in:
Qiu Jian
2019-07-25 02:26:39 +08:00
parent 90d6adff23
commit c18359def4
12 changed files with 107 additions and 25 deletions
+2 -1
View File
@@ -9,10 +9,11 @@ get:
- $ref: '../parameters/roleassignments.yaml#/include_names'
- $ref: '../parameters/roleassignments.yaml#/effective'
- $ref: '../parameters/roleassignments.yaml#/include_system'
- $ref: '../parameters/roleassignments.yaml#/include_policies'
responses:
200:
description: 用户或组加入项目的信息列表
schema:
$ref: "../schemas/roleassignments.yaml#/RolAssignmentListResponse"
$ref: "../schemas/roleassignments.yaml#/RoleAssignmentListResponse"
tags:
- role_assignments
+6
View File
@@ -45,3 +45,9 @@ include_system:
type: boolean
in: query
description: 包含系统用户的角色项目信息
include_policies:
name: include_policies
type: boolean
in: query
description: 是否在结果中包含用户在该项目的角色匹配的权限列表
+17 -1
View File
@@ -1,4 +1,4 @@
RolAssignmentListResponse:
RoleAssignmentListResponse:
type: object
properties:
limit:
@@ -35,6 +35,22 @@ RoleAssignment:
type: object
description: 角色
$ref: '#/DomainObject'
policies:
type: object
description: 匹配的权限列表
properties:
project:
type: array
items:
type: string
domain:
type: array
items:
type: string
system:
type: array
items:
type: string
Scope:
type: object