Add granular permission to variants

This commit is contained in:
Nikolaj Geisle
2022-05-11 12:31:51 +02:00
parent b6277fbfd7
commit e270f90296
3 changed files with 39 additions and 4 deletions

View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models.ContentEditing
@@ -16,8 +13,12 @@ namespace Umbraco.Cms.Core.Models.ContentEditing
{
Tabs = new List<Tab<ContentPropertyDisplay>>();
Notifications = new List<BackOfficeNotification>();
AllowedActions = Enumerable.Empty<string>();
}
[DataMember(Name = "AllowedActions", IsRequired = true)]
public IEnumerable<string> AllowedActions { get; set; }
[DataMember(Name = "name", IsRequired = true)]
public string? Name { get; set; }