Commit 0b3b44a0 authored by Thomas Löffler's avatar Thomas Löffler

Add check if group UID > 0

parent 47494564
Pipeline #2850 passed with stages
in 4 minutes and 3 seconds
......@@ -168,7 +168,7 @@ class tx_ter_helper
*/
private function userIsAdmin(string $userGroupList): bool
{
return GeneralUtility::inList($userGroupList, $this->pluginObj->conf['adminFrontendUsergroupUid']);
return $this->pluginObj->conf['adminFrontendUsergroupUid'] > 0 && GeneralUtility::inList($userGroupList, $this->pluginObj->conf['adminFrontendUsergroupUid']);
}
/**
......@@ -177,7 +177,7 @@ class tx_ter_helper
*/
private function userIsSecurityTeamMember(string $userGroupList): bool
{
return GeneralUtility::inList($userGroupList, $this->pluginObj->conf['securityTeamFrontendUsergroupUid']);
return $this->pluginObj->conf['securityTeamFrontendUsergroupUid'] > 0 && GeneralUtility::inList($userGroupList, $this->pluginObj->conf['securityTeamFrontendUsergroupUid']);
}
/**
......
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