Visible objects for different group of users
Posted: Wed Feb 15, 2012 9:13 pm
I am going to make visible some objects (div,table) in my index.php file only for the one group of users, for example authors. I have inserted the following code:
But it doesn't work. May be it is possible to identify the group by ID, but i am not in touch with php.
Code: Select all
<?php
$user =& JFactory::getUser();
?>
<?php if($user->get('usertype') == 'Author') : ?>
<div id="user1">
<jdoc:include type="modules" name="user1" style="xhtml" />
</div>
<?php endif ?>