/// <summary>
 /// Requires a registered and logged in account for read access if the provider is not null
 /// </summary>
 /// <param name="provider">The provider to use try and use for this check</param>
 /// <param name="entity">The entity to assign permissions to</param>
 public static void TrySetLoggedIn <T>(this ISecurityProvider <T> provider, T entity)
 {
     if (provider != null)
     {
         provider.SetPublic(entity);
     }
 }