42 if ($this->listsPermission < 0)
44 switch ($this->listsPermission)
46 case \CListPermissions::WRONG_IBLOCK_TYPE:
47 $this->errorCollection->setError(
48 new Error(Loc::getMessage(
'LISTS_LIB_SECURITY_RIGHT_ERROR_WRONG_IBLOCK_TYPE')),
52 case \CListPermissions::WRONG_IBLOCK:
53 $this->errorCollection->setError(
54 new Error(Loc::getMessage(
'LISTS_LIB_SECURITY_RIGHT_ERROR_WRONG_IBLOCK')),
58 case \CListPermissions::LISTS_FOR_SONET_GROUP_DISABLED:
59 $this->errorCollection->setError(
60 new Error(Loc::getMessage(
'LISTS_LIB_SECURITY_RIGHT_ERROR_SONET_GROUP_DISABLED'),
65 $this->errorCollection->setError(
66 new Error(Loc::getMessage(
'LISTS_LIB_SECURITY_RIGHT_ERROR_ACCESS_DENIED'),
75 if (method_exists($this->entityRight, $entityMethod))
77 if (!$this->entityRight->$entityMethod())
79 $this->errorCollection->setError(
80 new Error(Loc::getMessage(
'LISTS_LIB_SECURITY_RIGHT_ERROR_ACCESS_DENIED'),
87 $this->errorCollection->setError(
88 new Error(Loc::getMessage(
'LISTS_LIB_SECURITY_RIGHT_ERROR_ACCESS_DENIED'),