Infolog: Fix toggle encrypt didn't work with webcomponents

This commit is contained in:
nathan 2022-04-12 15:23:51 -06:00
parent 2755d19d2f
commit b9892687e9

View File

@ -753,7 +753,11 @@ class InfologApp extends EgwApp
*/
toggleEncrypt(_event, _widget, _node)
{
if (!this.egw.user('apps').stylite)
if(!_node && _widget instanceof HTMLElement)
{
_node = _widget;
}
if(!this.egw.user('apps').stylite)
{
this.egw.message(this.egw.lang('InfoLog encryption requires EPL Subscription')+': <a href="http://www.egroupware.org/EPL">www.egroupware.org/EPL</a>');
return;