Commit 1bea6135 authored by Kulya's avatar Kulya 😊

Test is Admin2

parent 6b5e06ee
...@@ -1143,8 +1143,8 @@ class AloVoiceConnector ...@@ -1143,8 +1143,8 @@ class AloVoiceConnector
public function returnView(){ public function returnView(){
$wrap=true; $wrap=true;
$req_is_admin = BxRest::call("user.admin"); $req_is_admin = BxRest::call("user.admin");
var_dump($req_is_admin); // var_dump($req_is_admin);
$this->isAdmin = ($req_is_admin["result"]=="1") ? true : false; $this->isAdmin = (!empty($req_is_admin["result"])) ? true : false;
$arResult = false; $arResult = false;
if(!empty($_REQUEST["PLACEMENT"])){ if(!empty($_REQUEST["PLACEMENT"])){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment