Commit 1bea6135 authored by Kulya's avatar Kulya 😊

Test is Admin2

parent 6b5e06ee
......@@ -1143,8 +1143,8 @@ class AloVoiceConnector
public function returnView(){
$wrap=true;
$req_is_admin = BxRest::call("user.admin");
var_dump($req_is_admin);
$this->isAdmin = ($req_is_admin["result"]=="1") ? true : false;
// var_dump($req_is_admin);
$this->isAdmin = (!empty($req_is_admin["result"])) ? true : false;
$arResult = false;
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