Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2012, 04:42 PM
K Software K Software is offline
 
Join Date: Sep 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Secondary Usergroups not Overriding

I'm scratching my head on this one because I've done this dozens and dozens of times.

I have a forum that I want to grant special access to. I created a secondary usergroup with "All Yes" set for the forum in question, selected that usergroup as a secondary on a user but the secondary isn't overriding the user's primary usergroups denial of access to the forum. It's the most straightforward thing in the world so I can't figure out where I've gone wrong. If I add read permission to the user's primary group it works fine and it also works fine if I set my new group as the user's primary group (but that's not what I want to do). If it works as a primary group then that tells me it isn't a usergroup-level problem. It seems like the secondary groups just aren't overriding the primary like they're supposed to.

Is there some trick I'm missing? I'm using 4.2.0
Reply With Quote
  #2  
Old 08-22-2012, 09:08 PM
K Software K Software is offline
 
Join Date: Sep 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was really hoping someone might shed some light here.. I'm still scratching my head about it. It seems so straightforward but it's just not working the way it's documented to work.
Reply With Quote
  #3  
Old 09-04-2012, 06:59 AM
stardotstar stardotstar is offline
 
Join Date: May 2008
Location: SYD, AU
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I have run into a similar thing.

We have a classifieds forum and general access is granted by the usual promotions to and assignment of primary usergroups.

When people abuse the privileges of the classifieds we want to be able to "ban" them from using the classifieds by adding them to a secondary user group.

So we have a group called adBAN.

When I set the permissions I just deny access to everything in the classifieds forum.

The adBAN group I have tried as a normal and banned group but nothing seems to allow the secondary usergroup assignment to take effect.

I don't want to put them in a primary usergroup because it will stuff up all sorts of other permissions.

Will
Reply With Quote
  #4  
Old 09-04-2012, 03:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In Usergroup Manager > edit the Primary Usergroup - is Allow Users to have Member Groups set to yes?

Quote:
(Sets whether or not permissions from the user's member (secondary) user group memberships are inherited or not)
Reply With Quote
  #5  
Old 10-26-2012, 12:07 AM
K Software K Software is offline
 
Join Date: Sep 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow.. Wow...... Wow. That was exactly it. Forest for the trees.

I've literally been trying things for 4 months to get it to work and somehow I missed that every single time.

THANK YOU!
Reply With Quote
  #6  
Old 10-26-2012, 01:24 AM
stardotstar stardotstar is offline
 
Join Date: May 2008
Location: SYD, AU
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I have that set Lynne.
Seems highest level of permission wins.
Reply With Quote
  #7  
Old 10-26-2012, 01:52 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, the rule is that the user has the maximum permission allowed by any group the belong to. From the vbulletin manual:
Quote:
The basic idea here is that if a user is in multiple groups and they specify conflicting permissions, the greater permission overrides. Thus, a yes will always override a no and a larger number will override a smaller number.
Note:
There is a slight exception to this rule. If 0 represents unlimited or no restriction, then it will override any other setting; it really is the greater permission.

So maybe you could reverse things and add everyone to a secondary group that gives permissions to the classifieds.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04206 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete