This repository was archived by the owner on Jan 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ type Role struct {
1212 Name string `json:"name"`
1313 Description string `json:"description"`
1414 Global bool `json:"global"`
15+ Group string `json:"group"`
16+ DisplayName string `json:"string"`
17+ Hidden bool `json:"hidden"`
1518 Permissions []Permission `json:"permissions,omitempty"`
1619}
1720
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ const (
1414 "name": "test:policy",
1515 "version": 1,
1616 "description": "Test policy description",
17+ "displayName": "test display",
18+ "group": "test group",
19+ "hidden": false,
1720 "permissions": [
1821 {
1922 "id": 6,
@@ -34,6 +37,9 @@ const (
3437 "name": "test:policy",
3538 "version": 1,
3639 "description": "Test policy description",
40+ "displayName": "test display",
41+ "group": "test group",
42+ "hidden": false,
3743 "permissions": [
3844 {
3945 "permission": "test:self",
@@ -101,6 +107,9 @@ func TestGetRole(t *testing.T) {
101107 UID : "vc3SCSsGz" ,
102108 Name : "test:policy" ,
103109 Description : "Test policy description" ,
110+ Group : "test group" ,
111+ DisplayName : "test display" ,
112+ Hidden : false ,
104113 Permissions : []Permission {
105114 {
106115 Action : "test:self" ,
You can’t perform that action at this time.
0 commit comments