ContentApp Show/Hide per user Role

Making content app work show hide in manifest work for user roles. for example:

 "show": [
                "+role/admin"
            ]
This commit is contained in:
Carole Rennie Logan
2018-10-14 15:56:22 +01:00
parent bbc28b132d
commit 1f072a383e
7 changed files with 42 additions and 21 deletions

View File

@@ -1,4 +1,7 @@
namespace Umbraco.Core.Models.ContentEditing
using System.Collections.Generic;
using Umbraco.Core.Models.Membership;
namespace Umbraco.Core.Models.ContentEditing
{
/// <summary>
/// Represents a content app definition.
@@ -15,6 +18,6 @@
/// the content app should be displayed or not, and return either a <see cref="ContentApp"/>
/// instance, or null.</para>
/// </remarks>
ContentApp GetContentAppFor(object source);
ContentApp GetContentAppFor(object source, IEnumerable<IReadOnlyUserGroup> userGroups);
}
}