vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to prevent other "admins" from accessing "paid subscription" section? vb 3.8.4 (https://vborg.vbsupport.ru/showthread.php?t=293503)

the stig 01-02-2013 03:17 AM

How to prevent other "admins" from accessing "paid subscription" section? vb 3.8.4
 
Hey guys,
I have a vb forum version 3.8.4. I am the admin and I have another admin account which I use. But I'm about to assign a super mod with admin privilege. I added a new usergroup. I was able to block many stuff via admin permission area. But I just can't seem to block the paid subscription section from this admin usergroup. How can I do that?

thanks in advance. Happy New year 2013

kh99 01-02-2013 04:14 PM

There is no option for doing that. Those scripts check "canadminusers", so you probably can't give an admin access to the user sections without also giving them access to subscriptions. But what you could do is edit admincp/subscriptions.php and change what it checks. The default looks like this:
Code:

if (!can_administer('canadminusers'))
{
        print_cp_no_permission();
}


but you could add a different check, like for specific userids. Edit: Also, you'd need to make the same change in subscriptionpermissions.php.

If you wanted to get fancy you could probably add an admin permission for subscriptions. I think you'd start by adding a bit for that in includes/xml/bitfield_vbulletin.xml, and you'd probably need a phrase for the description of it, but I'm not sure offhand what else you'd have to do.


All times are GMT. The time now is 02:08 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.01024 seconds
  • Memory Usage 1,707KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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