Browse Source

add check for user variable

pull/108/head
Aaron Parecki 5 years ago
parent
commit
926b3f8820
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      views/layout.php

+ 1
- 1
views/layout.php View File

@ -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