Skip to content

feat: add session actor middleware #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
fixup! feat(cdr): add session actor types
  • Loading branch information
deansheather committed Apr 6, 2022
commit ada9c1add52e033e1f7bbd476e35c92eeea15cb3
4 changes: 2 additions & 2 deletions coderd/access/session/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ type userActor struct {

var _ UserActor = &userActor{}

func NewUserActor(u *database.User) *userActor {
func NewUserActor(u *database.User) UserActor {
return &userActor{
user: u,
}
}

func (ua *userActor) Type() ActorType {
func (*userActor) Type() ActorType {
return ActorTypeUser
}

Expand Down