OKAPI-839 investigated approaches to migrating static permissions during module upgrade. The outcome was a PoC and wiki page describing the preferred approach. This story follows that and formalizes/completes the implementation started in the PoC.
NOTE: this work spans both OKAPI and mod-permissions. This story covers the OKAPI portion only.
- No breaking changes - must support the existing version of the _tenantPermissions interface.
- When the new version of _tenantPermissions is available, it should be used to handle static permission migration
- Module downgrades must also be handled appropriately.