The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make my WHM plugin work for user with privilege other than 'ALL' ?

Discussion in 'cPanel Developers' started by stephane02, Mar 21, 2012.

  1. stephane02

    stephane02 Member

    Joined:
    Dec 14, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm scratching my head trying to find a way to make a simple WHM plugin work for users oter than root. It actually works fine when user has 'all' privilege but shows blank when a reseller has for example a 'edit-dns' privilege.

    I really don't know where to go and find a solution if I can't get any single answer from cPanel techs. We are about to lose our job here and a single reply from cPanel support could save our job as we're stuck at what to do to fix it.

    Hopefully, we can get some replies from you soon or from any saavy user who experienced the same kind of issues.

    Here's this plugin code:
    Location: /usr/local/cpanel/whostmgr/docroot/cgi/addon_mywhmplugin.php
    PHP:
    <?PHP
    #ACLS:edit-dns
    #WHMADDON:mywhmplugin:My WHM Plugin
    header("Location: ".$_ENV{'cp_security_token'}."/mywhmplugin/index.php");
    ?>
    thank you for helping,

    Stephane
     
  2. stephane02

    stephane02 Member

    Joined:
    Dec 14, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  3. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Re: How to make my WHM plugin work for user with privilege other than 'ALL'

    As stated in the PHP section of CreatingWhmPlugins < SoftwareDevelopmentKit < TWiki only Perl can leverage the built in ACL system. For other languages, you must implement your own.

    Regards,
    -DavidN
     
Loading...

Share This Page