title: Joomla : How to set access permission from a custom component?
body: <p>Currently I am creating a custom component for <strong>Joomla 2.5</strong>. </p>
  
  <p>In this component I need to create users that are assigned to particular user group, say <em>'Test'</em>. 
  If any user assigned to <em>'Test'</em> is loggined from the back-end (i.e. admin login), then I need to hide all admin menus and redirect the user to a particular page inside my component.
  In other words that user is restricted from other admin areas. </p>
  
  <p>The problem is that I have to perform all of these actions from my custom component. Is there any way to achieve this? Any help will be much appreciated.</p>
  
  <p>Thanks in advance.</p>