summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/application/templates/bootstrap-3/components/post.twig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/application/templates/bootstrap-3/components/post.twig b/src/application/templates/bootstrap-3/components/post.twig
index ac969c0..6043abe 100644
--- a/src/application/templates/bootstrap-3/components/post.twig
+++ b/src/application/templates/bootstrap-3/components/post.twig
@@ -15,6 +15,7 @@
and (
(
postAuthor is not null
+ and postAuthor.id == currentUser.id
and postAuthor.hasPermission(permission("EDIT_OWN_POST"))
)
or currentUser.hasPermission(permission("EDIT_OTHER_POST"))