Преглед изворни кода

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,
 			},
 		})
 	}