Start ::
PostNuke 0.7 Support ::
XTE Support ::
Does UserX belong to GroupY?
Moderated by: Support Team
-
- rank:
-
pnHelper
- registered:
- September 2001
- Status:
- offline
- last visit:
- 12.05.08
- Posts:
- 113
I need a way in a template to determine if a given user (not the logged in user, this isn't a permissions issue) belongs to a particular group. Is there a function I can call do to this? -
- rank:
-
pnProfessional
- registered:
- November 2003
- Status:
- offline
- last visit:
- 09.05.08
- Posts:
- 1530
I can think of a couple of ways to do this, can you tell me what is it exactly you're trying to accomplish with this so that you get an appropriate answer?
-----
viewTopiaryWorks($twWorks, $twRosterMaster) -
- rank:
-
pnHelper
- registered:
- September 2001
- Status:
- offline
- last visit:
- 12.05.08
- Posts:
- 113
Certain groups need to maintain a certain level of anonymity, hiding behind usernames. Other groups need to have their full names displayed. Which are which don't relate well to permission level either.
In any case, I found this:
http://community.postnuke...ewpub-tid-8-pid-16.htm
which after some modification is working well for me. -
- rank:
-
pnProfessional
- registered:
- September 2002
- Status:
- offline
- last visit:
- 11.05.08
- Posts:
- 745
That is not the way the PostNuke security system works. It doesn't check if you are member of a group but whether you have permissions for something or not. And the system is flexible enough that you can invent your own permission and use it.
So if you add:
HiddenGroup | ::hide | :: | edit
you can check in your template:
-----
best regards from Kiel, sailing city
Steffen Voß
Member of the PostNuke Steering Committee
Visit: Kaffeeringe.de - Internet & Kreativität -
- rank:
-
pnProfessional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 08.05.08
- Posts:
- 2635
Coincidence?
-----
-- David Pahl -- (PostNuke Support Team)
<div id="me" class="none" style="none" />
-
- rank:
-
pnProfessional
- registered:
- November 2003
- Status:
- offline
- last visit:
- 09.05.08
- Posts:
- 1530
I didn't even follow the link to see where it led
but I asked the question to see if what I had was appropriate.
Feedback on your usage of the plugin would be appreciated as I'm considering turning it into a module.
edited by: Topiatic, Feb 01, 2008 - 03:49 AM
-----
viewTopiaryWorks($twWorks, $twRosterMaster)
Start ::
PostNuke 0.7 Support ::
XTE Support ::
Does UserX belong to GroupY?
