Example #1
0
 /// <summary>
 /// GetReplyImage check to see whether the current user has permissions to contribute to the discussion thread
 /// Users with proper permission see an image they can click  on to post a reply, otherwise they see nothing.
 /// </summary>
 /// <returns>Returns either a 1x1 image or the reply.gif icon</returns>
 protected string GetReplyImage()
 {
     // leave next commented statement in for testing back doors
     // return "~/images/reply.gif";
     if (DiscussionPermissions.HasAddPermissions(ModuleID) == true)
     {
         return(getLocalImage("reply.gif"));
     }
     else
     {
         return(getLocalImage("1x1.gif"));
     }
 }