You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(backend): create controller guard for old update calls (#5028)
# Motivation
Some `update` calls in the `backend` do not necessary require
`allowed_users` to access them. Mainly they are related to migration.
So, we allow just the controllers to access them, until the time comes
that we totally deprecate them.
# Changes
- Create guard caller_is_controller just for controllers.
- Use new guard in `update` calls:
- `top_up_cycles_ledger`
- `set_guards`
- `bulk_up`
- `migrate_user_data_to`
- `migration_stop_timer`
- `step_migration`
# Tests
Current tests are sufficient.
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
0 commit comments