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

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

* Fix naming

(cherry picked from commit da2c99a2e1)

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-11-22 16:05:24 +01:00
committed by GitHub
co-authored by Alexander Zobnin
parent 5d4d5bf296
commit 85ab6d10bf
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"`