Explorar o código

change to viewer permissions (#4549)

Co-authored-by: sunguroku <trevor@porter.run>
sunguroku %!s(int64=2) %!d(string=hai) anos
pai
achega
6e6ea84792
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
 			},
 		})
 	}