         end
         
     end
-    -- update active access
-    -- ensure that access right are in place		
-        if not exists (select top 1
-            UserID	
-            from [{databaseOwner}].[{objectQualifier}ActiveAccess] WITH(NOLOCK) 
-            where UserID = @UserID )		
-            begin
-            insert into [{databaseOwner}].[{objectQualifier}ActiveAccess](
-            UserID,
-            BoardID,
-            ForumID,
-            IsAdmin, 
-            IsForumModerator,
-            IsModerator,
-            IsGuestX,
-            LastActive, 
-            ReadAccess,
-            PostAccess,
-            ReplyAccess,
-            PriorityAccess,
-            PollAccess,
-            VoteAccess,	
-            ModeratorAccess,
-            EditAccess,
-            DeleteAccess,
-            UploadAccess,
-            DownloadAccess)
-            select 
-            UserID, 
-            @BoardID, 
-            ForumID, 
-            IsAdmin,
-            IsForumModerator,
-            IsModerator,
-            @IsGuest,
-            @UTCTIMESTAMP,
-            ReadAccess,
-            (CONVERT([bit],sign([PostAccess]&(2)),(0))),
-            ReplyAccess,
-            PriorityAccess,
-            PollAccess,
-            VoteAccess,
-            ModeratorAccess,
-            EditAccess,
-            DeleteAccess,
-            UploadAccess,
-            DownloadAccess			
-            from [{databaseOwner}].[{objectQualifier}vaccess] 
-            where UserID = @UserID 
-            end
-
-                -- ensure that guest access right are in place		
-        if not exists (select top 1
-            UserID	
-            from [{databaseOwner}].[{objectQualifier}ActiveAccess] WITH(NOLOCK) 
-            where UserID = @GuestID )		
-            begin
-            insert into [{databaseOwner}].[{objectQualifier}ActiveAccess](
-            UserID,
-            BoardID,
-            ForumID,
-            IsAdmin, 
-            IsForumModerator,
-            IsModerator,
-            IsGuestX,
-            LastActive, 
-            ReadAccess,
-            PostAccess,
-            ReplyAccess,
-            PriorityAccess,
-            PollAccess,
-            VoteAccess,	
-            ModeratorAccess,
-            EditAccess,
-            DeleteAccess,
-            UploadAccess,
-            DownloadAccess)
-            select 
-            UserID, 
-            @BoardID, 
-            ForumID, 
-            IsAdmin,
-            IsForumModerator,
-            IsModerator,
-            @IsGuest,
-            @UTCTIMESTAMP,
-            ReadAccess,
-            (CONVERT([bit],sign([PostAccess]&(2)),(0))),
-            ReplyAccess,
-            PriorityAccess,
-            PollAccess,
-            VoteAccess,
-            ModeratorAccess,
-            EditAccess,
-            DeleteAccess,
-            UploadAccess,
-            DownloadAccess			
-            from [{databaseOwner}].[{objectQualifier}vaccess] 
-            where UserID = @GuestID 
-            end
-
-            
+	end
     -- return information
     select top 1
         ActiveUpdate        = ISNULL(@ActiveUpdate,0),

            a.ForumID = @ForumID and
            b.BoardID = @BoardID
    end
    
    if @DontTrack != 1 and @UserID is not null and @UserBoardID=@BoardID begin
      if exists(select 1 from [{databaseOwner}].[{objectQualifier}Active] where (SessionID=@SessionID OR ( Browser = @Browser AND (Flags & 8) = 8 )) and BoardID=@BoardID)

        begin
            raiserror('No candidates for a guest were found for the board %d.',16,1,@BoardID)
            end
  
    
             
    if @UserKey is null
    begin
    -- this is a guest	
        SET @UserID = @GuestID
        set @IsGuest = 1
        -- set IsGuest ActiveFlag  1 | 2
