Browse Source

add check for user variable

pull/108/head
Aaron Parecki 6 years ago
parent
commit
926b3f8820
No known key found for this signature in database GPG Key ID: 276C2817346D6056
  1. 2
      views/layout.php

2
views/layout.php

@ -71,7 +71,7 @@
<div class="nav">
<ul class="nav navbar-nav">
<?php if(session('me')) { ?>
<?php if(session('me') && isset($this->user)) { ?>
<?php if(supports_post_type($this->user, 'article')): ?>
<li><a href="/editor">📄 Editor</a></li>
<?php endif; ?>

Loading…
Cancel
Save