Create user a/c to view all monitoring files only

haywoodcox

Joined
Jun 11, 2009
Messages
79
Likes
0
Points
0
#1
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.
 

jastele

Joined
Jun 29, 2010
Messages
18
Likes
0
Points
0
#2
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
 

duxumanduchun

Joined
Aug 6, 2010
Messages
6
Likes
0
Points
0
#3

haywoodcox

Joined
Jun 11, 2009
Messages
79
Likes
0
Points
0
#4
Thanks. It works great for me!
 

achilles

Joined
Oct 30, 2007
Messages
112
Likes
0
Points
0
#5
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;
 

akldjian

Joined
Jul 26, 2011
Messages
219
Likes
0
Points
0
#6
Is this going to survive an upgrade?

Andrey
 

akldjian

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

Andrey
 

aformica

Joined
Jan 19, 2012
Messages
3
Likes
0
Points
1
#8
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
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,595
Latest member
feparra121
Top