Limit or HIDE Admin > Carriers View

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Limit or HIDE Admin > Carriers View

Postby rrb555 » Mon Jul 04, 2011 1:02 pm

hi i would like to ask on how to delete or hide the carrier info under admin > carriers.
what i did was created a level 8 user ,i logon to that, access the admin > carrier, i can see all the listed carriers on that server to which I wanted it blank

GoAutoDial CE 2.0
Vicidial VERSION: 2.2.1-237 BUILD: 100510-2015
Asterisk 1.4.27.1-vici
Dahdi 2.3
no other hardware


thanks
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby williamconley » Mon Jul 04, 2011 10:50 pm

i do not see a user setting to allow/disallow carrier access. you'd have to add a preference for it or modify the admin.php code to only allow it for your user (or delete it from admin.php completely and use a copy of admin.php that's not altered when you WANT to modify carriers, but don't give anyone a link to the copied file!)

or pay The Vicidial Group to add a preference to "Users" for carrier page access (or pay someone else like Poundteam, and be sure to publish to the Project so it'll get included and you won't lose it on Upgrade!).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20344
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby rrb555 » Tue Jul 05, 2011 3:57 pm

thank you for your reply williamconley.

I did find a good way to hide the carrier info by editing some script in admin.php

FROM
######################
# ADD=140000000000 display all carriers
######################
if (($ADD==140000000000)

TO

######################
# ADD=140000000000 display all carriers
######################
if (($ADD==140000000000) & ($LOGuser_level == 9))

so level 9 can only view the info but have another question here, how about hiding all for example the admin menu, filters menu, remote, etc and just leave the Campaigns MENU and Report MENU just like user level 7 the menu viewable is Report MENU only

thanks in advance! :D
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Postby williamconley » Tue Jul 05, 2011 7:45 pm

excellent post back! :lol:

post it as a request or post a diff file

Maybe even a request to create a "level 8 and above only" access for specific menu areas.

or ... maybe a request for a "level vs menu" preferences area. (IE: every section would have a "minimum user level"). 8)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20344
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby covarrubiasgg » Wed Jul 06, 2011 12:27 pm

williamconley wrote:
or ... maybe a request for a "level vs menu" preferences area. (IE: every section would have a "minimum user level"). 8)


That would be a nice feature, many call centers have to give access to their clients and sometimes to external providers and is not nice to let them watch certain things on the setup :P
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: Limit or HIDE Admin > Carriers View

Postby perci100 » Fri Mar 27, 2015 1:30 am

I know this post is old but I just used this info to lock out servers,carriers,callmenus etc. the code is well structured and its commented so search for "servers" and you will find the section that will allow you to edit those menu items as well. Thank you for this and hopefully this control gets added (or already is in a newer version , I am running vicibox 5.03)
8 server cluster web/tel x 5/db/archive(rec only) in production inbound/outbound/AMD/full recording |Vicibox 5.0.3 Standard ISO | VERSION: 2.12-549a BUILD: 160404-0940 | Asterisk 1.8.25.0-vici | No added software all servers in RAID 10
perci100
 
Posts: 74
Joined: Thu Feb 09, 2012 1:47 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 77 guests