Skip to content

Commit f6ecdac

Browse files
committed
✨ Enhance operator performance access check by including write permissions 🚀
1 parent 701275f commit f6ecdac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lhc_web/modules/lhchat/dashboardwidgets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
$supportedWidgets['dep_performance'] = erTranslationClassLhTranslation::getInstance()->getTranslation('chat/dashboardwidgets','Department performance');
9494
}
9595

96-
if (erLhcoreClassUser::instance()->hasAccessTo('lhstatistic', 'op_performance')) {
96+
if (erLhcoreClassUser::instance()->hasAccessTo('lhstatistic', 'op_performance') || erLhcoreClassUser::instance()->hasAccessTo('lhstatistic', 'op_performance_write')) {
9797
$supportedWidgets['op_performance'] = erTranslationClassLhTranslation::getInstance()->getTranslation('chat/dashboardwidgets','Operator performance');
9898
}
9999

0 commit comments

Comments
 (0)