summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kohl2024-10-17 19:32:42 +0200
committerJonas Kohl2024-10-17 19:32:42 +0200
commit75d4836c38309acc2caaeacc227c6e9079dde924 (patch)
treecb4505c4f1934668bcbf822c8276efa6547b8d2f
parent4e4561506d3fcb47d96db8ad0dd5638ecea5d96a (diff)
Fix client-side permission mismatch bug
-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"))