Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static bool CanSeeTopic(int topicId)
 {
     return(Utills.CanSeeTopic(topicId));
 }
Exemplo n.º 3
0
 public static bool CanSeeComment(int commentId)
 {
     return(Utills.CanSeeComment(commentId));
 }
Exemplo n.º 4
0
 public static bool IsModerator()
 {
     return(Utills.IsModerator());
 }