public override bool VisibleFor(Feed feed, object data, Guid userId) { return(base.VisibleFor(feed, data, userId) && ProjectSecurity.CanGoToFeed((Task)data, userId)); }
public override bool VisibleFor(Feed feed, object data, Guid userId) { return(base.VisibleFor(feed, data, userId) && ProjectSecurity.CanGoToFeed(((ParticipantFull)data).Project, userId)); }