3
I'm not sure what you are trying to do, but if you download the jobs module version 2.22 (find it at
http://www.jlmzone.com) and look in the addlisting.php file.
There you will see 2 different ways of doing it.
The first is at the top of the page, that allows users access to the page if they are in the right group.
The other is at about lines 177 to 185, this one allows certain groups to do one thing and others something else.
You should also look at the admin/groupperms.php file, I assume you have one like it in your module. you could just use the jobs one, just change the values to fit your module.
This is the easiest way for me to explain it.
remember if it is in a function you need
global $xoopsUser, $xoopsModule; plus what you already have there.
Hope this helps,
John