Create user a/c to view all monitoring files only

Discussion in 'General' started by haywoodcox, Sep 15, 2010.

  1. haywoodcox

    Joined:
    Jun 11, 2009
    Messages:
    79
    Likes Received:
    0
    Hi All,

    I tried to create an user account which only have right to access the monitor files for all users. However, Elastix must need to assigned an extensions. How can I not assign any extension and can view all recording files. If I add it as Administrator group, then can see all monitor files, but I do not want that a/c can access other pages such as shutdown the system.
     
  2. jastele

    Joined:
    Jun 29, 2010
    Messages:
    18
    Likes Received:
    0
    I've added the following lines to /var/www/html/modules/monitoring/index.php

    if ($_SESSION['elastix_user'] == 'USERNAMEHERE')
    $esAdministrador = TRUE;

    Obviously you replace USERNAMEHERE with the name of the group you created to view the monitoring tab.

    Full thread here:

    http://elastix.org/en/component/kunena/ ... html#58892
     
  3. duxumanduchun

    Joined:
    Aug 6, 2010
    Messages:
    6
    Likes Received:
    0
  4. haywoodcox

    Joined:
    Jun 11, 2009
    Messages:
    79
    Likes Received:
    0
    Thanks. It works great for me!
     
  5. achilles

    Joined:
    Oct 30, 2007
    Messages:
    112
    Likes Received:
    0
    For CDR and Monitorings:
    Run:
    /usr/bin/sqlite3 /var/www/db/acl.db "UPDATE acl_user SET extension = 0 WHERE name = 'myuser'"
    change myuser to your username


    in /var/www/html/modules/monitoring/index.php
    $extension = $pACL->getUserExtension($user);
    $esAdministrador = $pACL->isUserAdministratorGroup($user);

    and make it like:


    $extension = $pACL->getUserExtension($user);
    $esAdministrador = $pACL->isUserAdministratorGroup($user);
    if($extension==0)
    $esAdministrador=true;
     
  6. akldjian

    Joined:
    Jul 26, 2011
    Messages:
    219
    Likes Received:
    0
    Is this going to survive an upgrade?

    Andrey
     
  7. akldjian

    Joined:
    Jul 26, 2011
    Messages:
    219
    Likes Received:
    0
    I'm thinking it would be better to create a phantom extension. You don't have to assign it to a phone.

    Andrey
     
  8. aformica

    Joined:
    Jan 19, 2012
    Messages:
    3
    Likes Received:
    0
    I create a group called STAFF give the permision to view the monitoreing then I change the /var/www/html/libs/paloSantoACL.class.php

    the function isUserAdministratorGroup which return if is an administrator
    from
    $is = array_search('1', $arrGroup);
    to
    $is = array_search('1', $arrGroup)|| $is = array_search('number of the new group', $arrGroup); and it work

    what I am doing is to give the Administration right to the new group
     

Share This Page