vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   permission problem (https://vborg.vbsupport.ru/showthread.php?t=56682)

sabret00the 09-01-2003 03:57 PM

permission problem
 
i've got a super mod lounge which mods can't see yet if they guess the forum id they can see the threads, but they can't see threads in the admin lounge and the permissions are the same, if there anyway i can hard code it?

sabret00the 09-02-2003 09:58 AM

*bump*

N9ne 09-02-2003 10:14 AM

Which version of vB are you running?

sabret00the 09-02-2003 11:25 AM

2.2.9

N9ne 09-02-2003 12:34 PM

Have you done any hacking to forumdisplay.php?

Can they see posts themselves? Or can they just see the thread listing?

sabret00the 09-02-2003 01:39 PM

they can see the posts and yes nearly every file has some hack or another in there :blush:

N9ne 09-02-2003 01:49 PM

The only thing I can think of is a hack gone bad ;), as 2.2.9 didn't have this insecurity. Have you triple checked your permission settings?

Chris M 09-02-2003 02:04 PM

Just put something like below in your showthread.php file:

PHP Code:

if (($thread['forumid']=="X") && ($bbuserinfo['usergroupid']!="6")) {
show_nopermission();
exit;


Change X to your admin forumid, and make sure your admin usergroup is id 6;)
:)

Satan

Dean C 09-02-2003 02:42 PM

Chris you don't need to quote integers and strings or letters should be sinqle quoted unless they contain a variable. :)

PHP Code:

if (($thread['forumid'] == 'X') AND ($bbuserinfo['usergroupid'] != 6))

        
show_nopermission(); 
         exit; 


*Moved to the correct forum too* :)

sabret00the 09-02-2003 06:04 PM

thanks i will try this out later :D


All times are GMT. The time now is 07:07 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.01087 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete