/// <summary>
 /// Checks whether the current user is authorised to view provided entity in an index.
 /// </summary>
 /// <param name="entity">An entity in the index.</param>
 /// <returns>A value indicating whether the current user is authorised to access an index of entities including the one provided.</returns>
 public override bool IsAuthorised(IEntity entity)
 {
     return(AuthoriseRetrieveStrategy.New(entity.ShortTypeName, RequireAuthorisation).IsAuthorised(entity));
 }
 /// <summary>
 /// Checks whether the current user is authorised to index an entity of the specified type.
 /// </summary>
 /// <param name="shortTypeName">The type of entity being indexed.</param>
 /// <returns>A value indicating whether the current user is authorised to index an entity of the specified type.</returns>
 public override bool IsAuthorised(string shortTypeName)
 {
     return(AuthoriseRetrieveStrategy.New(shortTypeName, RequireAuthorisation).IsAuthorised(shortTypeName));
 }