hunk.code_window: 		return
   	}
   	if _, err := c.App.DeletePost(c.Params.PostId); err != nil {
   		c.Err = err
   		return
   	}
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit: 	if c.Session.UserId == post.UserId {
   		if !c.App.SessionHasPermissionToChannel(c.Session, post.ChannelId, model.PERMISSION_DELETE_POST) {
   			c.SetPermissionError(model.PERMISSION_DELETE_POST)
   			return
   		}
   	} else {
   		if !c.App.SessionHasPermissionToChannel(c.Session, post.ChannelId, model.PERMISSION_DELETE_OTHERS_POSTS) {
   			c.SetPermissionError(model.PERMISSION_DELETE_OTHERS_POSTS)
   			return
   		}
   	}
  
hunk.file_path: api4/post.go
hunk.type: add
file: procfs provides functions to retrieve system, kernel and process
  metrics from the pseudo-filesystem proc.
  
  Copyright 2014-2015 The Prometheus Authors
  
  This product includes software developed at
  SoundCloud Ltd. (http://soundcloud.com/).
  