PDA

View Full Version : Remove Paid Subscription Administrator Permission


PirateTinman
04-27-2011, 06:01 PM
Hi!
I have been searching the internet and these forums for a way to remove the ability for Administrators to see the "Paid Subscriptions" tab in the Admin Panel and only allow the Super Administrators (the ones in the config.php) I am sure its possible to do, I just don't know how.

It should act the same as the permission to see the "Administrator Permissions" tab under "Usergroups" as that can only be accessed by the Super Admins.

Thanks for any help!

HMBeaty
04-27-2011, 06:07 PM
You can do this in the includes/xml/cpnav_vbulletin.xml file in this area:
<navgroup phrase="paid_subscriptions" permissions="canadminusers" hr="true" displayorder="170">

<navoption displayorder="10">
<phrase>subscription_manager</phrase>
<link>subscriptions.php?do=modify</link>
</navoption>

<navoption displayorder="20">
<phrase>add_new_subscription</phrase>
<link>subscriptions.php?do=add</link>
</navoption>

<navoption displayorder="30">
<phrase>transaction_log</phrase>
<link>subscriptions.php?do=transactions&amp;type=log</link>
</navoption>

<navoption displayorder="40">
<phrase>transaction_stats</phrase>
<link>subscriptions.php?do=transactions&amp;type=stats</link>
</navoption>

<navoption displayorder="50">
<phrase>subscription_permissions</phrase>
<link>subscriptionpermission.php?do=modify</link>
</navoption>

<navoption displayorder="60">
<phrase>paymentapi_manager</phrase>
<link>subscriptions.php?do=api</link>
</navoption>

<navoption debug="1" displayorder="70">
<phrase>add_paymentapi</phrase>
<link>subscriptions.php?do=apiadd</link>
</navoption>

<navoption displayorder="80">
<phrase>test_communication</phrase>
<link>diagnostic.php?do=payments</link>
</navoption>

</navgroup>Just have a look through that xml file and change the bold
permissions="canadminusers"to whatever you want

PirateTinman
04-27-2011, 06:31 PM
Thanks, that was exactly what I needed!