# What this PR does Fixes the issue when users with the viewer role can't fetch the cloud connection status, which makes the plugin fail to load for viewers. This PR makes the cloud connection endpoint use `OTHER_SETTINGS_READ` for fetching the cloud connection status instead of `OTHER_SETTINGS_WRITE`. ## Checklist - [x] Tests updated - [x] `CHANGELOG.md` updated
17 lines
709 B
Python
17 lines
709 B
Python
from django.urls import include, path
|
|
|
|
from common.api_helpers.optional_slash_router import OptionalSlashRouter, optional_slash_path
|
|
|
|
from .views import CloudConnectionView, CloudHeartbeatView, CloudUsersView, CloudUserView
|
|
|
|
app_name = "oss_installation"
|
|
|
|
router = OptionalSlashRouter()
|
|
router.register("cloud_users", CloudUserView, basename="cloud-users")
|
|
|
|
urlpatterns = [
|
|
path("", include(router.urls)),
|
|
optional_slash_path("cloud_users", CloudUsersView.as_view(), name="cloud-users-list"),
|
|
optional_slash_path("cloud_connection", CloudConnectionView.as_view(), name="cloud-connection-status"),
|
|
optional_slash_path("cloud_heartbeat", CloudHeartbeatView.as_view(), name="cloud-heartbeat"),
|
|
]
|