Skip to content

Commit

Permalink
feat: add Groups in Permission struct (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaquet authored Nov 27, 2023
1 parent fce8275 commit c4b137b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions casdoorsdk/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Permission struct {
Description string `xorm:"varchar(100)" json:"description"`

Users []string `xorm:"mediumtext" json:"users"`
Groups []string `xorm:"mediumtext" json:"groups"`
Roles []string `xorm:"mediumtext" json:"roles"`
Domains []string `xorm:"mediumtext" json:"domains"`

Expand Down
1 change: 1 addition & 0 deletions casdoorsdk/permission_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestPermission(t *testing.T) {
DisplayName: name,
Description: "Casdoor Website",
Users: []string{"casbin/*"},
Groups: []string{},
Roles: []string{},
Domains: []string{},
Model: "user-model-built-in",
Expand Down

0 comments on commit c4b137b

Please sign in to comment.