Announcement

Collapse
No announcement yet.

Removing the ability to delete admin user

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing the ability to delete admin user

    In the web interface, there is a way to delete the Admin user account. I must remove this. It appears that should be done with the http.js file. However, each time I remove something in the javascript, I get errors returned when I access the web page.

    I've tried removing the:
    var startHref = " [<a href=\"javascript:void(0)\" onclick=" +
    "\"if(confirm('Are you SURE you want to delete this information?'))" +
    " ajax_HttpAuthClean([true, 'action=";
    var endHref = "']); return false;\">Delete</a>]";
    And replacing it with an empty var. That does not work.

    I tried editing this:
    for(var j = 0; j < users.length; j++)
    {
    numUsers++;
    r += users[j].firstChild.nodeValue + startHref +
    "deleteuser&amp;uri=" + encodeURIComponent(uri) +
    "&amp;user=" + users[j].firstChild.nodeValue +
    endHref + "<br/>";
    }
    if(! n
    and I get the same result. Can somebody help?

    thanks

  • #2
    Errors

    Well, what errors are you getting? It might have nothing to do with your change to startHref. Can you simply insert a comment into your http.js file and get that to work?

    Comment


    • #3
      When I try to load the page, the "busy" image just spins around and around. And there is a javascript error that says "object expected."

      Comment


      • #4
        When?

        This happens when you have made no changes to your http.js file?

        Comment


        • #5
          No. When I comment out the startHref and endHref and replace them with empty vars. I load the page onto the module and it gives errors.

          Comment


          • #6
            Bump for more help

            Comment


            • #7
              Nevermind. I used the <span style="display:none">. Customer doesn't have to see the configuration information.

              Comment

              Working...
              X