Commit 979d0ca7 by Garrett Bjerkhoel

Add new error type for team membership permissions

parent 7ea579bb
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment