PDA

View Full Version : Permissions Problem


Crazy Squirrel
Tue 17th Jun '03, 4:04pm
[Edit: Tis a bug, see buttom post]

Got a slight problem with permissions being ignored, or so I think. I've either been a fool and missed something, theres somesort of corruption, or it's a bug. Here's the setup and problem:

Permissions

Members -> ClanAS & Administrators permissions normal/admin access (inheriting), all other groups on custom deny all
|-> Tips & Tricks -> all on default (inheriting)
|-> iCTF Private Forum -> ClanAS on custom deny all, ClaniCTF on custom normal access, all other groups on default (inheriting)

No access masks are set for testuser2 or testuser3

Problem (1) ClanAS not denied from iCTF Private Forum:

Admincp -> Forums & Moderators -> View Permissions
enter: iCTF Private Forum & ClanAS
shown as all denied -> Right!

Looking at testuser2's profile in the admincp
-member of registered
-member of ClanAS (secondary) [override on the group is off]
select "view Forum Permissions" for user
shows iCTF Private Forum as normal access -> Wrong!

Log in as testuser2 and iCTF is visible and normal access to it is there -> Wrong!

Problem (2) ClaniCTF has no access to iCTF Forum

Admincp -> Forums & Moderators -> View Permissions
enter: iCTF Private Forum & ClaniCTF
shown as normal access -> Right!

Looking at testuser3's profile in the admincp
-member of registered
-member of ClaniCTF (secondary) [override on the group is off]
select "view Forum Permissions" for user
shows iCTF Private Forum as denied access -> Wrong!

Log in as testuser2 and iCTF access denied -> Wrong!


The forum is very large, and i've set up 2 sets of denys like (1) already - and they work fine so i'm not sure why it isn't working here. (2) i would also expect to work, it used to work when it was individual access masks but secondary groups are less messy hence this change over..... Help! :|

amykhar
Tue 17th Jun '03, 5:12pm
Resubmitting your usergroup settings might fix the problems. It did for me. I have another couple of threads in the bugs forum about permissions that you might want to read.

Crazy Squirrel
Tue 17th Jun '03, 5:37pm
Tried numerous times reentering...

Just had the bright idea of going to the database and seeing whats set:

Members -> No row for ClanAS (i.e Inherit default access) | forumpermissions=0 for ClaniCTF
|-> Tips & Tricks -> No row for Clan AS (i.e Inherit default access) | No row for ClaniCTF (i.e Inherit 0 access)
|-> iCTF Private Forum -> forumpermissions=0 for ClanAS | forumpermissions=127231 for ClaniCTF

So that seems fine!! :/

Edit: Solved it!! Something to do with something in the usergroups table i think.....will post back if i can find exactly what it was :/
Edit2: Second thoughts... (1) is fixed, (2) isn't...

Crazy Squirrel
Tue 17th Jun '03, 7:44pm
Right.... it's not a problem with my permission settings....
It seems that any forum pemission change does not come into affect imediatly. Testing the theory by having made a change (checking in the database) and then checking access (via the 2 ways (by use access & user login test) that failed as in my 1st post -strange that the 3rd (by forum access) has conflicting views thou).....

Now it wasn't like this yesterday so i'm going to have to talk with the other admins and see if somethings changed/been installed. One of them did mention something about a new vB3 caching option, and I know redhat had a small update...

Crazy Squirrel
Wed 18th Jun '03, 4:56am
Gahhhhh seems that its:

http://www.vbulletin.com/forum/showthread.php?threadid=73798[/url])]it looks like the forum permission are only updated after the usergroup is saved.

Thats a very nasty bug imo, and i've confirmed its whats had me running in circles for hours. :(


/me goes through all 27 groups and resaves settings to ensure all the other permissions are up to date

Scott MacVicar
Thu 19th Jun '03, 8:22am
fixed now build_forum_permissions(); was in the wrong places

Superman53142
Mon 23rd Jun '03, 11:49pm
fixed now build_forum_permissions(); was in the wrong places
So how do I fix my forum?!?

This is an extreme problem that I'd like to fix ASAP!

EDIT: Never mind, I used the workaround and that's OK for now :)

EDIT again: The workaround doesn't seem to work for the Member usergroup... :-/

Erwin
Tue 24th Jun '03, 12:10pm
This is a very urgent problem, and needs fixing on my forums too. Can someone post a definitive fix? I have junior staff entering our senior staff forums, and this is causing chaos. :(

Floris
Tue 24th Jun '03, 12:20pm
I agree, I'd like to have a fix a.s.a.p.
Can you guys please decide if we can have the updated files as a patch or something ? Since no mysql databases require changing, I think it is only a few files that need to be overwritten in the admincp or includes/

Superman53142
Tue 24th Jun '03, 11:22pm
This is a very urgent problem, and needs fixing on my forums too. Can someone post a definitive fix? I have junior staff entering our senior staff forums, and this is causing chaos. :(
Sorry OT here, but I'm really sorry about your forum crash, Erwin! Glad you're back up; even if a bit of data was lost :)

Chad Beattie
Wed 25th Jun '03, 1:15am
fixed now build_forum_permissions(); was in the wrong places

For issues like this, will patched files or howto's on what to fix be released shortly. I understand VB3 is still beta, but when permission issues are fixed it would be nice to get at least an updated file with those fixes.

Thanks

Steve Machol
Wed 25th Jun '03, 1:20am
When appropriate and feasible, the Devs have been posting specific fixes in the vB3 Fixes and Patches forum:

http://www.vbulletin.com/forum/forumdisplay.php?forumid=76

Chad Beattie
Wed 25th Jun '03, 1:44am
When appropriate and feasible, the Devs have been posting specific fixes in the vB3 Fixes and Patches forum:

http://www.vbulletin.com/forum/forumdisplay.php?forumid=76

Ok, thanks. I'll keep my eye out for this fix.

Erwin
Wed 25th Jun '03, 3:37am
Thanks for the thoughts. :) Gives me an excuse to upgrade to vB3. Do you like our new vB3 Admin CP style? ;)

Anyway, I don't see the fix for this posted anywhere, Steve.

Steve Machol
Wed 25th Jun '03, 2:11pm
It will be fixed in Beta 4. If the Devs deem it feasible to do so, they post specific fixes in the vB3 Fixes and Patches forum.

Dark_Wizard
Wed 25th Jun '03, 4:08pm
It will be fixed in Beta 4. If the Devs deem it feasible to do so, they post specific fixes in the vB3 Fixes and Patches forum.

Sorry to ask this but any ETA yet on Beta 4?

Steve Machol
Wed 25th Jun '03, 5:17pm
Kier has already posted publicly that he's shooting for a release this Friday.

Superman53142
Wed 25th Jun '03, 6:06pm
Thanks for the thoughts. :) Gives me an excuse to upgrade to vB3. Do you like our new vB3 Admin CP style? ;)

Anyway, I don't see the fix for this posted anywhere, Steve.
Well, let it suffice to say that I never was a big fan of the control panel colors, but everyone seems to like it, so hey, whatever :) Glad your forum members are more cooperative than mine; I change the colors and they all cry mutiny :p

Anyway, Friday sounds good for beta 4 :) Thanks Steve and devs!

Chad Beattie
Wed 25th Jun '03, 7:02pm
Kier has already posted publicly that he's shooting for a release this Friday.

That would be sweet! I think I'll upgrade when beta 4 is out. Just saw a few issues with b3 that I didn't want to mess with yet, mainly the permissions.

Erwin
Thu 26th Jun '03, 9:25am
Yes!!! I shall await Beta 4 in anticipation...