Fixes anti-forgery, fixes tempdata, adds front-end security/identity, gets member macro snippets and controllers all working, removes old code, adds more props to the member identity
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Umbraco.Cms.Core.Security
|
||||
{
|
||||
/// <summary>
|
||||
@@ -5,5 +7,16 @@ namespace Umbraco.Cms.Core.Security
|
||||
/// </summary>
|
||||
public interface IMemberManager : IUmbracoUserManager<MemberIdentityUser>
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks if the current member is authorized based on the parameters provided.
|
||||
/// </summary>
|
||||
/// <param name="allowTypes">Allowed types.</param>
|
||||
/// <param name="allowGroups">Allowed groups.</param>
|
||||
/// <param name="allowMembers">Allowed individual members.</param>
|
||||
/// <returns>True or false if the currently logged in member is authorized</returns>
|
||||
bool IsMemberAuthorized(
|
||||
IEnumerable<string> allowTypes = null,
|
||||
IEnumerable<string> allowGroups = null,
|
||||
IEnumerable<int> allowMembers = null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user