diff options
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index f17df8831..bcbdd7760 100644 --- a/api/post.go +++ b/api/post.go @@ -132,7 +132,9 @@ func CreatePost(c *Context, post *model.Post, triggerWebhooks bool) (*model.Post } } - post.CreateAt = 0 + if post.CreateAt != 0 && !HasPermissionToContext(c, model.PERMISSION_MANAGE_SYSTEM) { + post.CreateAt = 0 + } post.Hashtags, _ = model.ParseHashtags(post.Message) |