Disable edit and options for non-members

This commit is contained in:
Yukimi Kazari 2017-01-25 07:51:12 -05:00
parent 9a508048fd
commit 319cbcc192
2 changed files with 5 additions and 6 deletions

View File

@ -35,9 +35,8 @@
<?= $this->partial('blacklists') ?>
</div>
<?php if (current_user()->is_member_or_lower()) : ?>
<div class="status-notice">Youre not logged in! You are required to have an account to access <a href="/wiki/show?title=restricted_content">restricted content</a>! <a href="/user/login">Login</a>
</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>
<?php endif ?>
<?php if ($this->searching_pool) : ?>
<div class="status-notice">

View File

@ -10,12 +10,12 @@
<?php if ($this->post->can_be_seen_by(current_user())) : ?>
<script type="text/javascript">Post.register_resp(<?= json_encode(Post::batch_api_data(array($this->post))) ?>);</script>
<?php endif ?>
<?= $this->partial('post/show_partials/status_notices', array('pools' => $this->pools)) ?>
<?php if (!current_user()->is_member_or_higher()) : ?>
<div class="status-notice">You must be a member to comment or edit posts! <a href="/user/login">Login</a>
<div class="status-notice">You must have an account to comment or edit posts<a href="/user/login">Login</a>
</div>
<?php endif ?>
<?= $this->partial('post/show_partials/status_notices', array('pools' => $this->pools)) ?>
<div class="sidebar">
<?= $this->partial('post/show_partials/related_posts_panel') ?>
<?php if ($this->post->can_be_seen_by(current_user())) : ?>