Skip to content

Commit 072c228

Browse files
committed
7.2.2 Changes
UmbracoApiController -> UmbracoAuthorizedApiController in relationeditor.js added /backoffice to api urls
1 parent e490a73 commit 072c228

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Umbraco.RelationEditor.Web/App_Plugins/RelationEditor/relationeditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@
247247
}
248248

249249
function RelationsResources($q, $http, umbDataFormatter, umbRequestHelper) {
250-
var root = Umbraco.Sys.ServerVariables.umbracoSettings.umbracoPath + "/relationseditor/relations/",
251-
enableRoot = Umbraco.Sys.ServerVariables.umbracoSettings.umbracoPath + "/relationseditor/settings/";
250+
var root = Umbraco.Sys.ServerVariables.umbracoSettings.umbracoPath + "/backoffice/relationseditor/relations/",
251+
enableRoot = Umbraco.Sys.ServerVariables.umbracoSettings.umbracoPath + "/backoffice/relationseditor/settings/";
252252
return {
253253
getById: function(section, treeType, id) {
254254
return umbRequestHelper.resourcePromise(

Umbraco.RelationEditor/Controllers/RelationsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Umbraco.RelationEditor.Controllers
1414
{
1515
[UmbracoApplicationAuthorize("content")]
1616
[PluginController("RelationsEditor")]
17-
public class RelationsController : UmbracoApiController
17+
public class RelationsController : UmbracoAuthorizedApiController
1818
{
1919
private readonly IRelationService relationService;
2020
private readonly IContentService contentService;

Umbraco.RelationEditor/Controllers/SettingsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Umbraco.RelationEditor.Controllers
1111
{
1212
[UmbracoApplicationAuthorize("content")]
1313
[PluginController("RelationsEditor")]
14-
public class SettingsController : UmbracoApiController
14+
public class SettingsController : UmbracoAuthorizedApiController
1515
{
1616
private IContentTypeService ContentTypeService
1717
{

0 commit comments

Comments
 (0)