fix: update collaborator access mode (#38894)

There is already AddOrUpdateCollaborator, don't duplicate the code.
This commit is contained in:
wxiaoguang
2026-08-13 09:54:33 +00:00
committed by GitHub
parent 01e9febbea
commit d2be79a942
7 changed files with 38 additions and 77 deletions
@@ -17,6 +17,7 @@
{{$previewContext := or $editorContext.PreviewContext ""}}
{{$previewLink := or $editorContext.PreviewLink (print AppSubUrl "/-/markup")}}
{{$mentionsLink := or $editorContext.MentionsLink ""}}
{{/* don't try to remove it, there are still many users who like it: https://github.com/go-gitea/gitea/issues/38228#issuecomment-4809312561 */}}
{{$supportEasyMDE := or (eq $previewMode "comment") (eq $previewMode "wiki")}}
<div {{if .ContainerId}}id="{{.ContainerId}}"{{end}} class="combo-markdown-editor {{if .CustomInit}}custom-init{{end}} {{.ContainerClasses}}"
data-dropzone-parent-container="{{.DropzoneParentContainer}}"