hunk.code_window: 	if c.Err != nil {
   		return
   	}
   	if !c.App.SessionHasPermissionToPost(c.Session, c.Params.PostId, model.PERMISSION_DELETE_OTHERS_POSTS) {
   		c.SetPermissionError(model.PERMISSION_DELETE_OTHERS_POSTS)
   		return
   	}
  
hunk.labels: keep keep keep keep replace replace keep keep keep
hunk.after_edit: 	post, err := c.App.GetSinglePost(c.Params.PostId)
   	if err != nil {
   		c.SetPermissionError(model.PERMISSION_DELETE_POST)
  
hunk.file_path: api4/post.go
hunk.type: replace
file: # Compiled Object files, Static and Dynamic libs (Shared Objects)
  *.o
  *.a
  *.so
  
  # Folders
  _obj
  _test
  
  # Architecture specific extensions/prefixes
  *.[568vq]
  [568vq].out
  
  *.cgo1.go
  *.cgo2.c
  _cgo_defun.c
  _cgo_gotypes.go
  _cgo_export.*
  
  _testmain.go
  
  *.exe
  *.test
  
  *.bench
  