浏览代码

change to viewer permissions (#4549)

Co-authored-by: sunguroku <trevor@porter.run>
sunguroku 2 年之前
父节点
当前提交
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,
 			},
 		})
 	}