public static bool IsMemberInGroup(string GroupName, int memberid) { Member m; try { m = Utills.GetMember(memberid); } catch (Exception ex) { Log.Add(LogTypes.Error, new User(0), -1, string.Format("Utills.GetMember({0}) failed - {1} {2} {3}", memberid, ex.Message, ex.StackTrace, ex.InnerException)); return(false); } foreach (MemberGroup mg in m.Groups.Values) { if (mg.Text == GroupName) { return(true); } } return(false); }
public static bool CanSeeTopic(int topicId) { return(Utills.CanSeeTopic(topicId)); }
public static bool CanSeeComment(int commentId) { return(Utills.CanSeeComment(commentId)); }
public static bool IsModerator() { return(Utills.IsModerator()); }