Beispiel #1
0
        public TransitAssociatedComment(ISession session, DBlog.Data.Hibernate.AssociatedComment o, bool hasaccess)
        {
            CommentId      = o.Id;
            AssociatedId   = o.AssociatedId;
            AssociatedType = o.Type;

            if (hasaccess)
            {
                CommentIpAddress = o.IpAddress;
                CommentText      = o.Text;
                CommentCreated   = o.Created;
                CommentModified  = o.Modified;
                CommentLevel     = 0;
            }
        }
Beispiel #2
0
 public TransitAssociatedComment(ISession session, DBlog.Data.Hibernate.AssociatedComment o, string ticket)
     : this(session, o, ManagedLogin.IsAdministrator(session, ticket))
 {
 }
Beispiel #3
0
 public TransitAssociatedComment(ISession session, DBlog.Data.Hibernate.AssociatedComment o)
     : this(session, o, true)
 {
 }