summaryrefslogtreecommitdiffstats
path: root/tests/integration/api_user_email_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/api_user_email_test.go')
-rw-r--r--tests/integration/api_user_email_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/api_user_email_test.go b/tests/integration/api_user_email_test.go
index 09083d9ce8..9fff42af42 100644
--- a/tests/integration/api_user_email_test.go
+++ b/tests/integration/api_user_email_test.go
@@ -46,7 +46,7 @@ func TestAPIAddEmail(t *testing.T) {
normalUsername := "user2"
session := loginUser(t, normalUsername)
- token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeUser)
+ token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeWriteUser)
opts := api.CreateEmailOption{
Emails: []string{"user101@example.com"},
@@ -83,7 +83,7 @@ func TestAPIDeleteEmail(t *testing.T) {
normalUsername := "user2"
session := loginUser(t, normalUsername)
- token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeUser)
+ token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeWriteUser)
opts := api.DeleteEmailOption{
Emails: []string{"user2-3@example.com"},