creates new UmbracoTreeAuthorizeAttribute which helps make tree and editor security with webapi a bit more flexible with a different option to authorize against an assigned app based on a tree alias.
This commit is contained in:
@@ -14,7 +14,7 @@ using Constants = Umbraco.Core.Constants;
|
||||
|
||||
namespace Umbraco.Web.Trees
|
||||
{
|
||||
[UmbracoApplicationAuthorize(Constants.Applications.Developer)]
|
||||
[UmbracoTreeAuthorize(Constants.Trees.DataTypes)]
|
||||
[Tree(Constants.Applications.Developer, Constants.Trees.DataTypes, "Data Types")]
|
||||
[PluginController("UmbracoTrees")]
|
||||
[CoreTree]
|
||||
|
||||
Reference in New Issue
Block a user