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

Skip to content

Commit 85dc6a7

Browse files
committed
Make actions just a string
1 parent 8530cdf commit 85dc6a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

codersdk/users.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
"time"
99

1010
"github.com/google/uuid"
11-
12-
"github.com/coder/coder/coderd/rbac"
1311
)
1412

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

9795
type UserPermissionCheck struct {
9896
Object UserPermissionCheckObject `json:"object"`
99-
Action rbac.Action `json:"action"`
97+
Action string `json:"action"`
10098
}
10199

102100
// LoginWithPasswordRequest enables callers to authenticate with email and password.

0 commit comments

Comments
 (0)