Skip to content

Update user rules after creating application#322

Merged
joseganora merged 1 commit intostagingfrom
WN-367
Apr 14, 2026
Merged

Update user rules after creating application#322
joseganora merged 1 commit intostagingfrom
WN-367

Conversation

@jajaramillo24
Copy link
Copy Markdown
Collaborator

After creating an application, load the user's roles and organisations and send updated access rules to the API. Add feature flags for legacy WhatNow and Preparedness V2, and restrict allowed_country_code to the user's organisations when the current role lacks api_full_access. Wrap the rules update in a try/catch and log failures. Also import Illuminate\Support\Facades\Log.

After creating an application, load the user's roles and organisations and send updated access rules to the API. Add feature flags for legacy WhatNow and Preparedness V2, and restrict allowed_country_code to the user's organisations when the current role lacks api_full_access. Wrap the rules update in a try/catch and log failures. Also import Illuminate\Support\Facades\Log.
@joseganora joseganora merged commit 54c0445 into staging Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants