# feature_flags: Fix issue where staff is not automatically signed into collab \(\#54332\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c28d82cbcb13f3948e1fa74024ca51ea823b8ab0

Requested commit: c28d82cbcb13f3948e1fa74024ca51ea823b8ab0

Commit: c28d82cbcb13f3948e1fa74024ca51ea823b8ab0

Tree: d5e221ebf59f209e1301b17d146e1b43428b746e

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
feature_flags: Fix issue where staff is not automatically signed into collab (#54332)

Follow up to #54206

`on_flags_ready` relied on the fact that the `FeatureFlagStore` was only
set once the flags had been received from the server.
However, after #54206 the global gets instantiated earlier, without the
flags being resolved.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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