mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
fix: role assignments list should include matched policies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -45,3 +45,9 @@ include_system:
|
||||
type: boolean
|
||||
in: query
|
||||
description: 包含系统用户的角色项目信息
|
||||
|
||||
include_policies:
|
||||
name: include_policies
|
||||
type: boolean
|
||||
in: query
|
||||
description: 是否在结果中包含用户在该项目的角色匹配的权限列表
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user