XF 1.2 I can't get this right...

bart

Active member
I have the normal usergroup registered users.

I have two usergroups men (usergroup 8) and women (usergroup 9) And I have two nodes. One for men, one for women. Let's call them "Cars" and "Shopping".

How do i set up permissions that women can't access the Cars-node and men can't see the "Shopping"-node.

I tried a lot of thing, but it doesn't work.

For example in the cars-node I would think this would work:
- registered users: all revoked (no one can see the cars)
- men: acces granted
- women: no setting

No one can enter.

This doesn't work either:
- registered users: inherited (meaning: access)
- men: acces granted
- women: access revoked

Women can still enter.

This is difficult...
 
http://xenforo.com/community/threads/understanding-permissions.5830/

Creating a private forum

Because of the way Revoke works in xenForo you shouldn't use it to restrict a private forum. Instead you should use a special feature in xenForo called Private node. You will see the Private node checkbox when editing the permissions for a specific node. This basically inverts the permissions so that you can specify Allowed groups instead of Revoked groups. This is actually better for group management if you add more groups later.

Admin CP -> Users -> Node Permissions -> [select a forum] -> Private node
 
I would have thought that your first lot of settings should have worked.

According to this:

http://xenforo.com/community/resources/understanding-permissions.360/

Revoke + Allow = Overall Yes
and
Inherited Allow + Revoke = Overall No

so surely what you are doing

Inherited Allow + Revoke + Allow = Overall Yes ??

I assume the setting you are using here is the View Node one within these forums?
Have you tried analysing permissions just to check if there's nothing else set that's causing this not to work?


I'd have thought that a better way to do it though would be to make both of these nodes Private, then grant permission to (i.e. set View Node to Allow) for the group that you wish to access the forum.

**Edit** Ninja'd!
 
@Jake Bunce out of interest, why wouldn't the OP's first method work i.e. Inherited Allow + Revoke + Allow?

I use private nodes to restrict access but this is the one thing that has confused me.
 
I seem to have it working now.

- registered users: all revoked (no one can see the cars)
- men: acces granted
- women: all revoked (instead of no setting)

This looks like it's working...
No private node's.
 
Inherited Allow only prevails when there are no explicit Revokes. An explicit Revoke trumps inherited access and can only be overridden by an explicit Allow.

The "Private node" option is better.
 
I seem to have it working now.

- registered users: all revoked (no one can see the cars)
- men: acces granted
- women: all revoked (instead of no setting)

This looks like it's working...
No private node's.
I was wrong, this doesn't work after all.

What would be the right setting, you say? Why doesn't this work:

- private node: yes
- registered users: all revoked
- women: all revoked
- men: forum permissions allowed
 
You don't need to revoke anything with a private node. All you need to do is Set View Node to Allow for the group that you wish to access it.

So

- private node: yes

And for the View Node permission

- registered users: inherit
- women: inherit
- men: allow

All other permissions can be left as inherit unless you want to give permissions to the men that they don't have in their group permissions.
 
Back
Top Bottom