Quote:
Originally Posted by Logician
set a vb conditional in WT:
|
Hey yah, just noticed that is a generalized workaround (with no PHP file hacking) to the issue of the WT restriction or 'negative permissions', i.e. the fact that WT specifies groups/IDs who CANT see the page. Its difficult for us because we've leaned heavily on vB's positive permissions capability to assign multiple groups so that we give fine-grained permission to our site.
Here's what I did --
PHP Code:
$header
<if condition="is_member_of($bbuserinfo, 6, 7, 8)">
$WQ_secretinfo
<else />
You should not have come here, $bbuserinfo[username]!
</if>
$footer
The above shows the web-query result to members of groups 6,7,8. It shows a personalized "go away" message to everyone else.
I suppose you could enclose your entire page in the conditional so that only the specified group(s) could see it. Since you're giving (or denying) permission at the page level in vb (as opposed to element level) I guess this works pretty generally to convert WT permissions. Comments/corrections?
Logician -- I'm so very grateful for your add-on and your support of it!