AccessControl: Team membership migration (#44065)
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com>
This commit is contained in:
co-authored by
ievaVasiljeva
Jguer
parent
dca3dddafd
commit
bc24fdcf8d
@@ -0,0 +1,17 @@
|
||||
package accesscontrol
|
||||
|
||||
import "fmt"
|
||||
|
||||
var ErrAddTeamMembershipMigrations = fmt.Errorf("Error migrating team memberships")
|
||||
|
||||
type ErrUnknownRole struct {
|
||||
key string
|
||||
}
|
||||
|
||||
func (e *ErrUnknownRole) Error() string {
|
||||
return fmt.Sprintf("%v: Unable to find role in map: %s", ErrAddTeamMembershipMigrations, e.key)
|
||||
}
|
||||
|
||||
func (e *ErrUnknownRole) Unwrap() error {
|
||||
return ErrAddTeamMembershipMigrations
|
||||
}
|
||||
Reference in New Issue
Block a user