From deafb2e4a6b6e7f2334959ab8ecb6f01f3ca4330 Mon Sep 17 00:00:00 2001 From: Yukimi Kazari Date: Wed, 25 Jan 2017 07:34:54 -0500 Subject: [PATCH] Disable edit and options for non-members --- app/views/post/show.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/post/show.php b/app/views/post/show.php index e965db0..4a0eb4b 100755 --- a/app/views/post/show.php +++ b/app/views/post/show.php @@ -17,8 +17,10 @@ post->can_be_seen_by(current_user())) : ?> partial('tags') ?> partial('post/show_partials/statistics_panel') ?> + is_member_or_higher()) : ?> partial('post/show_partials/options_panel') ?> +
can_show_ad('post#show-sidebar', current_user())) : ?> partial('vertical') ?> @@ -34,8 +36,10 @@ post->can_be_seen_by(current_user())) : ?> partial('post/show_partials/image') ?> partial('post/show_partials/image_footer', ['post_id' => $this->post->id]) ?> - partial('post/show_partials/edit') ?> - partial('post/show_partials/comments') ?> + is_member_or_higher()) : ?> + partial('post/show_partials/edit') ?> + + partial('post/show_partials/comments') ?> can_show_ad('post#show-bottom', current_user())) : ?> partial('horizontal', ['position' => 'bottom']) ?>