Skip to content

Commit

Permalink
fix: change pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Feb 27, 2024
1 parent 300c59c commit 47056cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const (
)

var (
ErrNoAuthHeader = errors.New("Authorization header is missing")
ErrInvalidAuthHeader = errors.New("Authorization header is malformed")
ErrClaimsInvalid = errors.New("Provided claims do not match expected scopes")
ErrNoAuthHeader = errors.New("authorization header is missing")
ErrInvalidAuthHeader = errors.New("authorization header is malformed")
ErrClaimsInvalid = errors.New("provided claims do not match expected scopes")
)

// JWSValidator ...
Expand Down
4 changes: 2 additions & 2 deletions tbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ func (t *Team) Validate() error {

// User is a user.
type User struct {
*adapters.User

Teams *[]Team `gorm:"many2many:user_teams;"`
Roles *[]Role `gorm:"many2many:user_roles;"`

adapters.User
}

// UserRole is a user role.
Expand Down

0 comments on commit 47056cb

Please sign in to comment.