diff options
author | Jonas Kohl | 2024-10-17 19:32:42 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-10-17 19:32:42 +0200 |
commit | 75d4836c38309acc2caaeacc227c6e9079dde924 (patch) | |
tree | cb4505c4f1934668bcbf822c8276efa6547b8d2f /src/application/templates/bootstrap-3/components | |
parent | 4e4561506d3fcb47d96db8ad0dd5638ecea5d96a (diff) |
Fix client-side permission mismatch bug
Diffstat (limited to 'src/application/templates/bootstrap-3/components')
-rw-r--r-- | src/application/templates/bootstrap-3/components/post.twig | 1 |
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")) |