สอบถามการแก้ user group สามารถดู report ได้ทุก extention
โพสต์แล้ว: 26 พ.ค. 2015 09:00
สอบถามการแก้ user group อื่นนอกจาก administrator สามารถดู report ได้ทุก extention ไม่จำกำเฉพาะ extention ของตัวเองสามารถทำได้ไหมครับ
Issabel, VoIP, FreePBX, CentOS, IPPBX, IPPhone, Asterisk, Elastix, Elastix MT, GSM VoIP, GSM VoIP Gateway, OpenSIPS, SIP, H.323, Gateway, Softphone, Calling Card, Callback, A2Billing, VPS, VOS3000, VoipSwitch, FreePBX, 3CX Phone System and More...
http://voip4share.com/
function isUserAdministratorGroup($username)
{
$is=false;
$idUser = $this->getIdUser($username);
if($idUser){
$arrGroup = $this->getMembership($idUser);
//$is = array_key_exists('administrator',$arrGroup);
$is = array_search('1', $arrGroup);
if(isset($arrGroup['Reports'])){
$is = true;
}
}
return $is;
}