diff options
Diffstat (limited to 'services/convert/user.go')
-rw-r--r-- | services/convert/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/convert/user.go b/services/convert/user.go index 1a2733d91e..2957c58b14 100644 --- a/services/convert/user.go +++ b/services/convert/user.go @@ -103,7 +103,7 @@ func User2UserSettings(user *user_model.User) api.UserSettings { func ToUserAndPermission(ctx context.Context, user, doer *user_model.User, accessMode perm.AccessMode) api.RepoCollaboratorPermission { return api.RepoCollaboratorPermission{ User: ToUser(ctx, user, doer), - Permission: accessMode.String(), - RoleName: accessMode.String(), + Permission: accessMode.ToString(), + RoleName: accessMode.ToString(), } } |