Forums

How to handle restricted access to forms?

blackhorse 06 Mar, 2008
Hi!

I got different user-groups and different forms. I want, that only specified user-groups can access their specified forms.

How can i manage that?

Thank you and best regards
Mark
GreyHead 06 Mar, 2008
Hi Mark,

Assuming that you are using standard Joomla groups then you should be able to identify the current user's group with $my->gid and use conditional php to show or not show the form.
<?php
global $my;
if ( $my->gid == 99 ) {
  // show this form
} else {
  // do something else
}
?>
Bob<br><br>Post edited by: GreyHead, at: 2008/03/06 17:35
blackhorse 06 Mar, 2008
Thank you Bob!!!

Best regards
Mark
This topic is locked and no more replies can be posted.