mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
Add new error type for team membership permissions
This commit is contained in:
parent
7ea579bb71
commit
979d0ca70f
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"errors"
|
||||
|
||||
"github.com/grafana/grafana/pkg/models"
|
||||
"github.com/grafana/grafana/pkg/setting"
|
||||
@ -109,6 +110,10 @@ type SocialGithub struct {
|
||||
teamIds []int
|
||||
}
|
||||
|
||||
var (
|
||||
ErrMissingTeamMembership = errors.New("User not a member of one of the required teams")
|
||||
)
|
||||
|
||||
func (s *SocialGithub) Type() int {
|
||||
return int(models.GITHUB)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user