Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make actions just a string
  • Loading branch information
Emyrk committed May 11, 2022
commit 85dc6a7fe73d6acf7d92998c862ab440527118c1
4 changes: 1 addition & 3 deletions codersdk/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (
"time"

"github.com/google/uuid"

"github.com/coder/coder/coderd/rbac"
)

// Me is used as a replacement for your own ID.
Expand Down Expand Up @@ -96,7 +94,7 @@ type UserPermissionCheckRequest struct {

type UserPermissionCheck struct {
Object UserPermissionCheckObject `json:"object"`
Action rbac.Action `json:"action"`
Action string `json:"action"`
}

// LoginWithPasswordRequest enables callers to authenticate with email and password.
Expand Down