34 $this->controller->addError(static::class,
'Wrong instance');
39 if (!$this->isAllowCreateByExtranetRule($item))
41 $this->controller->addError(static::class,
'Creating an extranet group is not possible');
46 if ($this->user->isCollaber())
48 $this->controller->addError(static::class,
'Access denied by collaber role');
53 if ($this->user->isAdmin())
58 if (CSocNetUser::IsUserModuleAdmin($this->user->getUserId(), $item->getSiteIds()))
68 $this->controller->addError(static::class,
'Access denied by permissions');