Hi,
I'm working on a custom module and am having problems with permissions.
The particular function starts out like:
function testmodule_admin_addstuff
(){ echo "Here1<br>";
if (!pnSecAuthAction
(0,
'testmodule',
"::", ACCESS_ADD
)) { return pnVarPrepHTMLDisplay
(_MODULENOAUTH
);
} echo "Here2<br>";
I added the echo statement for debugging.
I created a Group called Friends and added a user to the Friends group.
I am using these permissions:
1 Admins .* .* Admin
2 All groups Menublock:: Main Menu:: None
3 Friends testmodule:: .* Add
4 Users .* .* Comment
5 Unregistered Menublock:: User Menu:: None
6 Unregistered Menublock:: Main Menu:: None
7 Unregistered .* .* Read
However, when I log into the account of a user that is a part of the "Friends" group and try to access the function, I get this error:
Sorry! You do not have authorization to access this module
How can I fix my permissions to make this work?
Thanks,
Grant
--
Retail Retreat
http://www.retailretreat.com