Disable edit and options for non-members

This commit is contained in:
Yukimi Kazari 2017-01-25 07:53:33 -05:00
parent 319cbcc192
commit 411e2cfffd
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
<?= $this->partial('blacklists') ?>
</div>
<?php if (!current_user()->is_member_or_higher()) : ?>
<div class="status-notice">You are required to have an account to see sensitive or <a href="/wiki/show?title=restricted_content">restricted content</a> or !</div>
<div class="status-notice">You are required to have an account to access sensitive or <a href="/wiki/show?title=restricted_content">restricted content</a>!</div>
<?php endif ?>
<?php if ($this->searching_pool) : ?>
<div class="status-notice">

View File

@ -35,7 +35,7 @@
<?= $this->partial('horizontal', ['position' => 'top']) ?>
<?php endif ?>
<?php if (!$this->post->can_be_seen_by(current_user())) : ?>
<p>This post is restricted</p>
<div class="status-notice">You are required to have an account to access <a href="/wiki/show?title=restricted_content">restricted content</a>!</div>
<?php endif ?>
<?php if ($this->post->can_be_seen_by(current_user())) : ?>
<?= $this->partial('post/show_partials/image') ?>