- Issue created by @msnassar
Due to changes in group 2 and 3, in some cases, the comment access control returns false for the create operation for the comment entity. This is because:
public function supportsOperation($operation, $target): bool {
// Close access to directly create comments in groups using add form. This
// is because comments are being attached to groups automatically.
// @See group_comment_entity_insert.
if ($operation === 'create' && $target === 'entity') {
return FALSE;
}
return $this->parent->supportsOperation($operation, $target);
}
The create operation for comment entity should return only when trying to directly create a comment in a group.
Active
3.0
Code