Jump to content

Make user content creation suspension apply to chat


Nils

Recommended Posts

Posted

I actually think this is more of a bug, but I was asked by support to post it here.


As of now, when you take away content creation rights from a user (via the warn panel) he can still access chat. I believe this is not actually the way it should work, since posting in the chat is as much creating content as writing posts or status updates. Thus I would really appreciate if you could add a check to the chat page to make sure that only users who do not have posting suspended can access it.

This is particularly important because moderators cannot even preemptively ban users from chat that are not in the chat. It requires intervention from the ACP, which means an admin has to deal with it every time.

  • 3 weeks later...
Posted

I have now added the following code to chat.php to do this:

   	 if ( $this->memberData['restrict_post'] )

        {

            if ( $this->memberData['restrict_post'] == 1 )

            {

                $this->memberData['chat_banned'] = true;

            }


            $post_arr = IPSMember::processBanEntry( $this->memberData['restrict_post'] );                

            if ( time() < $post_arr['date_end'] )

            {

                $this->memberData['chat_banned'] = true;

            }

        }



Please feel free to include that in future releases, it would be great if I didn't have to re-apply this patch every time after an update.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...