HomePhabricator
Diffusion Comm 5b7e1be7c108

[keyserver] disable injecting redux state when policies are not accepted

Description

[keyserver] disable injecting redux state when policies are not accepted

Summary: Follow up to: https://phab.comm.dev/D5875#inline-39619, but even if data will not be sent and modal will be visible after refresh keyserver will inject data to html response - this change will prevent that.

Test Plan:

  1. Logout user
  2. Set terms policy as not accepted for user in DB
  3. Login via web app
  4. Refresh - data should not be present (empty app under modal, no data in redux)
  5. After accepting data should be fetched properly.

Reviewers: inka, michal, przemek, ashoat

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D6094

Details