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:
Shannon
2014-09-05 16:08:41 +10:00
parent 66e5843ef7
commit 4230668c8b
5 changed files with 58 additions and 3 deletions

View File

@@ -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]