Просмотр исходного кода

change to viewer permissions (#4549)

Co-authored-by: sunguroku <trevor@porter.run>
sunguroku 2 лет назад
Родитель
Сommit
6e6ea84792
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/server/handlers/project/invite_admin.go

+ 1 - 1
api/server/handlers/project/invite_admin.go

@@ -56,7 +56,7 @@ func (p *ProjectInviteAdminHandler) ServeHTTP(w http.ResponseWriter, r *http.Req
 			Role: types.Role{
 				UserID:    adminUserId,
 				ProjectID: proj.ID,
-				Kind:      types.RoleAdmin,
+				Kind:      types.RoleViewer,
 			},
 		})
 	}