# title_bar: Hide screen share when user doesn't have the permission \(\#25192\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2d6592dcaaa8dc5b8d266688b8fd712125d4ea7a

Requested commit: 2d6592dcaaa8dc5b8d266688b8fd712125d4ea7a

Commit: 2d6592dcaaa8dc5b8d266688b8fd712125d4ea7a

Tree: 36fc5d4c3f3679ccbe8ece7e5de8eb044d218f63

Author: Beniamin Zagan

Committer: GitHub

## Message

```
title_bar: Hide screen share when user doesn't have the permission (#25192)

On macos: 
- user has the required permission to screen share. 
- user doesn't have the can_use_microphone permission


When an user doesn't have the can_use_microphone permission the screen
share icon would be visible. If an user therefor would click on it, we
would give the error that they don't have the permission given to zed to
screen share. (which is false).

I've tested this together with @JosephTLyons because we first thought it
was a mac os permission issue.

Should we mention in the zed.dev/docs/collaboration what kind of
permissions are needed to be able to screen share?

Release Notes:

- Fixed: Screen sharing would be visible even when user didn't have the
right permission resulting in errors later on.
```

## Parents

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

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