Skip to content

Commit e6c8660

Browse files
authored
Correct api server token scopes (#248)
1 parent ce6ad8a commit e6c8660

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

apiserver/internal/models/user.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ type SignedInIdentity struct {
3232
type ApiTokenScope string
3333

3434
const (
35-
ApiTokenScopeTaskRead ApiTokenScope = "task:read"
36-
ApiTokenScopeTaskWrite ApiTokenScope = "task:write"
37-
ApiTokenScopeLabelRead ApiTokenScope = "label:read"
38-
ApiTokenScopeLabelWrite ApiTokenScope = "label:write"
39-
ApiTokenScopeUserRead ApiTokenScope = "user:read"
40-
ApiTokenScopeUserWrite ApiTokenScope = "user:write"
41-
ApiTokenScopeDavRead ApiTokenScope = "dav:read"
42-
ApiTokenScopeDavWrite ApiTokenScope = "dav:write"
35+
ApiTokenScopeTaskRead ApiTokenScope = "Tasks.Read"
36+
ApiTokenScopeTaskWrite ApiTokenScope = "Tasks.Write"
37+
ApiTokenScopeLabelRead ApiTokenScope = "Labels.Read"
38+
ApiTokenScopeLabelWrite ApiTokenScope = "Labels.Write"
39+
ApiTokenScopeUserRead ApiTokenScope = "User.Read"
40+
ApiTokenScopeUserWrite ApiTokenScope = "User.Write"
41+
ApiTokenScopeDavRead ApiTokenScope = "Dav.Read"
42+
ApiTokenScopeDavWrite ApiTokenScope = "Dav.Write"
4343
)
4444

4545
func AllUserScopes() []ApiTokenScope {

0 commit comments

Comments
 (0)