if(function_exists('jimport')) {
$acl =& JFactory::getACL();
$acl->addACL( 'com_comment', 'manage', 'users', 'super administrator' );
/* Additional access groups */
$acl->addACL( 'com_comment', 'manage', 'users', 'administrator' );
$acl->addACL( 'com_comment', 'manage', 'users', 'manager' );
/* End additional access groups */
$user = & JFactory::getUser();
if (!
$user->authorize( 'com_comment', 'manage' )) {
$mainframe->redirect( 'index.php', JText::_('_NOT_AUTH') );
}
}





Harry M 10:19 am on May 14, 2009 Permalink |
ini buat apa toh??
r4ccoon 10:59 am on May 14, 2009 Permalink |
biasa.. modifikasi joomla.
these codes are to give manager account the same access right as super administrator for that file.