Access control: use delegatable flag to check if role can be granted (#42070)

* Access control: use delegatable flag to check if role can be granted or not

* Fix naming
This commit is contained in:
Alexander Zobnin
2021-11-22 17:44:03 +03:00
committed by GitHub
parent e7e5c54148
commit da2c99a2e1
4 changed files with 14 additions and 3 deletions
+1
View File
@@ -64,6 +64,7 @@ type RoleDTO struct {
Description string `json:"description"`
Group string `xorm:"group_name" json:"group"`
Permissions []Permission `json:"permissions,omitempty"`
Delegatable *bool `json:"delegatable,omitempty"`
ID int64 `json:"-" xorm:"pk autoincr 'id'"`
OrgID int64 `json:"-" xorm:"org_id"`