diff --git a/src/Api/DiscussionPermissionAttributes.php b/src/Api/DiscussionPermissionAttributes.php index d71e4fd..2985ed7 100644 --- a/src/Api/DiscussionPermissionAttributes.php +++ b/src/Api/DiscussionPermissionAttributes.php @@ -40,7 +40,7 @@ public function __invoke(DiscussionSerializer $serializer, Discussion $model, ar $users = $actor->can('editUserRecipients', $model); $groups = $actor->can('editGroupRecipients', $model); - $attributes['canEditRecipients'] = $users || $groups; + $attributes['canEditRecipients'] = $model->is_private && ($users || $groups); $attributes['canEditUserRecipients'] = $users; $attributes['canEditGroupRecipients'] = $groups;