vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Hacks affecting access masks? (https://vborg.vbsupport.ru/showthread.php?t=34308)

jminiman 01-20-2002 08:15 PM

Hi all,

I have installed so many hacks over the past year that I've lost track of everything installed. I am having problems with random moderators randomly being granted access to private forums AFTER I set the Moderator group to not have access and even customizing that user's access masks. If I add another private forum, these random mods get access to all private forums once more.

What hacks, if any, would possibly affect access masks and might be a cause for this?

Dark_Wizard 01-21-2002 03:00 PM

Yes a hack can cause this if you had accidently deleted the wrong or too much code during the hack install. To try to find out which hack caused this could be very time consuming IMO, so I would suggest that you grab Beyond Compare and check the original files from the original vb download and compare those against the files you now have. Hope this helps.

jminiman 01-21-2002 04:30 PM

Trying it out now. Thanks for the tip!

Snake~eyes 01-22-2002 07:50 PM

I had this problem too and here's what I got from someone for a solution.

in /admin/forum.php

look for

$DB_site->query("INSERT INTO access (userid,forumid,accessmask) VALUES ('$userid','$forumid',1)");

put a double slash (//) or a hash (#) in front of it, these are the simpliest ways to comment it out.

jminiman 01-22-2002 07:53 PM

Thanks, but before I randomly comment out that line of code, what does it do?

Snake~eyes 01-22-2002 08:02 PM

Honestly, i have no clue.. lol.. i was told to do it and I did it. So it solved my problem. What i think it does is automatically give the moderator forum access to all the forums. Not sure

Martz 01-25-2002 08:02 AM

Yeah, I told you about this fix.

When you add a moderator it finds all private forums and adds the moderator a custom permission through the use of an access mask. This is quite anoying when you have large complicated forum permissions and access masks as you have to go and undo the damage. Commenting out the line stops the custom moderator access to private forums being added, but still adds the moderator and gives them permission on the respective forum and child forums.

Just comment it out and see how much time it will save you :)

HTH.

jminiman 01-25-2002 11:23 AM

Is this line not powerful enough to comment it out? I am still "enjoying" the same behavior of all mods getting access to newly added private forums:

while ( list($key,$userid)=each($accessto) ) {
// vB.org Remark $DB_site->query("INSERT INTO access (userid,forumid,accessmask) VALUES ('$userid','$forumid',1)");
}

Snake~eyes 01-25-2002 05:51 PM

you'll have to change all the masks to give them zero acces. But when you add new forums/mods it won't give them access again. You just have to set evryne for default

Martz 01-26-2002 11:15 AM

Quote:

Originally posted by jminiman
Is this line not powerful enough to comment it out? I am still "enjoying" the same behavior of all mods getting access to newly added private forums:

while ( list($key,$userid)=each($accessto) ) {
// vB.org Remark $DB_site->query("INSERT INTO access (userid,forumid,accessmask) VALUES ('$userid','$forumid',1)");
}

It all depends onhow you give people access. For me, an access mask permission isn't stanard, I use usergroups for everything as its easier to deal with large numbers of users. If you have many private forums and many usergroups like I do for hosted clans/projects, the new moderator gets access to every single private forum - which I dont wan't. It assumes you want a moderator to be able to access any forum.

If you don't need it too, don't comment it out. :)

jminiman 01-26-2002 12:19 PM

You mean DO comment it out if you don't want this default behavior of giving all mods access to all private forums?

Snake~eyes 01-26-2002 01:04 PM

Comment it out if you don't want the mods to get automatic access


All times are GMT. The time now is 04:43 PM.

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.01025 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete