# disallow opening private files \(\#7165\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/dcca48482bc40c9b104b7288c113c5d1dbbe1e9a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: dcca48482bc40c9b104b7288c113c5d1dbbe1e9a

Requested commit: dcca48482bc40c9b104b7288c113c5d1dbbe1e9a

Commit: dcca48482bc40c9b104b7288c113c5d1dbbe1e9a

Tree: f5a981ebb0eba3604a0835d09753f13c6e9b9ff3

Author: Conrad Irwin

Committer: GitHub

## Message

```
disallow opening private files (#7165)

- Disallow sharing gitignored files through collab
- Show errors when failing to open files
- Show a warning to followers when view is unshared

/cc @mikaylamaki, let's update this to use your `private_files` config
before merge.


Release Notes:

- Added the ability to prevent sharing private files over collab.

---------

Co-authored-by: Piotr <piotr@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
```

## Parents

- [c983c9b6df85cdf99dddfb943c7a5a6928050698](https://git.cafe/gitcafe/zed/commit/c983c9b6df85cdf99dddfb943c7a5a6928050698?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/dcca48482bc40c9b104b7288c113c5d1dbbe1e9a?format=markdown)
