discourse/app
Osama Sayegh 8d96761a4f
FIX: Include engine mount path for API scopes added by plugins (#16154)
In the API keys page where admins can create API keys with restricted scopes, each scope shows a list of URLs that it allows. But currently, this list of allowed URLs shows incomplete URLs for scopes that are added by plugins. For example, the allowed URL for the "run queries" scope of the data-explorer plugin is shown as `/queries/:id/run` when the correct URL for this scope is `/admin/plugins/explorer/queries/:id/run`. The first 3 segments of the path are the mount path of the plugin's engine and it's missing because the routes set of the engine doesn't include the mount path. To fix this, this commit gets the mount path and prepends it to the URL so the complete URL is shown to the user.

It's not possible to write tests for this change because plugins are not loaded in the test environment by default when core's tests suite is running.
2022-03-10 22:01:22 +03:00
..
assets DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
controllers PERF: avoid following links in topic RSS feeds (#16145) 2022-03-09 18:25:20 +11:00
helpers FIX: Update application_helper logic now that Ember CLI is default (#15935) 2022-02-14 13:48:18 +00:00
jobs FEATURE: Highlight expired bookmark reminders (#15317) 2022-03-08 19:44:18 +02:00
mailers FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
models FIX: Include engine mount path for API scopes added by plugins (#16154) 2022-03-10 22:01:22 +03:00
serializers FEATURE: Highlight expired bookmark reminders (#15317) 2022-03-08 19:44:18 +02:00
services FEATURE: Use Postgres unaccent to ignore accents (#16100) 2022-03-07 23:03:10 +02:00
views FEATURE: add nofollow to RSS alternate link in topics and categories (#16013) 2022-03-09 16:34:02 +11:00