I added a button "New Post" in the blog category to add posts to this category. (http://onlytest.ru/1-categories-blog)
But I set a condition that it appeared only for those who can create command blogs.
/components/com_easyblog/themes/wireframe/blogs/categories/item.php
How to write a condition that whether there was a check the user has the right to create posts in this category of the blog.
But I set a condition that it appeared only for those who can create command blogs.
/components/com_easyblog/themes/wireframe/blogs/categories/item.php
<?php if ($this->acl->get('create_team_blog')) { ?>
<a href="/blog/composer?category=<?php_echo_$category-=>id;_?=>=" class="btn btn-primary">
<?php echo JText::_('COM_EASYBLOG_NEW_POST'); ?></a>
<?php } ?>
How to write a condition that whether there was a check the user has the right to create posts in this category of the blog.