mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: move errors to enterprise (#32753)
This commit is contained in:
parent
c1061d038c
commit
7a68852aa7
@ -1,22 +1,9 @@
|
|||||||
package accesscontrol
|
package accesscontrol
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
ErrRoleNotFound = errors.New("role not found")
|
|
||||||
ErrTeamRoleAlreadyAdded = errors.New("role is already added to this team")
|
|
||||||
ErrUserRoleAlreadyAdded = errors.New("role is already added to this user")
|
|
||||||
ErrTeamRoleNotFound = errors.New("team role not found")
|
|
||||||
ErrUserRoleNotFound = errors.New("user role not found")
|
|
||||||
ErrTeamNotFound = errors.New("team not found")
|
|
||||||
ErrPermissionNotFound = errors.New("permission not found")
|
|
||||||
ErrRoleFailedGenerateUniqueUID = errors.New("failed to generate role definition UID")
|
|
||||||
ErrVersionLE = errors.New("the provided role version is smaller than or equal to stored role")
|
|
||||||
)
|
|
||||||
|
|
||||||
// Role is the model for Role in RBAC.
|
// Role is the model for Role in RBAC.
|
||||||
type Role struct {
|
type Role struct {
|
||||||
ID int64 `json:"id" xorm:"pk autoincr 'id'"`
|
ID int64 `json:"id" xorm:"pk autoincr 'id'"`
|
||||||
|
Loading…
Reference in New Issue
Block a user