ch en -tk
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-30 13:35:32 +05:00
1 parent 8b73df4435
commit 19a1f70588
3 files changed
+16

No files matched your search

+1
View File
@@ -174,6 +174,7 @@ func scanRole(row genericrepo.Scanner) (role.RoleDTO, error) {
return role.RoleDTO{}, err
}
item.Scope = rbac.Scope(scope)
item.ScopeName = item.Scope.Name()
item.Permissions = make([]perm.Code, len(codes))
for i, code := range codes {
item.Permissions[i] = perm.Code(code)
+1
View File
@@ -12,6 +12,7 @@ type RoleDTO struct {
Code string `json:"code"`
Name string `json:"name"`
Scope rbac.Scope `json:"scope"`
ScopeName string `json:"scopeName"`
IsSuper bool `json:"isSuper"`
IsSystem bool `json:"isSystem"`
Permissions []perm.Code `json:"permissions"`