/** * Execute the users.hasAppPermission method * */ public function execute() { $apiKey = $this->getContext()->getApiKey(); $ret = Api_Bo_App::checkUserHasPermission($apiKey, $this->getUserId(), $this->m_ext_perm, $this->getNetworkId()); $response = array(); $response[$this->m_ext_perm] = $ret ? '1' : '0'; return $response; }