XF 2.0 "Report" feature in XF2

Sadiq6210

Well-known member
Hello,

In XF1.0 it was not possible to give the permission to unregistered group to use (Report) feature. Any improvement done in this area in XF2?
Can the guest report about any post? or he need to register and login first as same as XF1?
 
lks38ppy.png

Set this to yes. Then go to \XF\Entity\User canReport and replace
PHP:
        if (!$this->user_id || !$this->hasPermission('general', 'report'))
with
PHP:
        if (!$this->hasPermission('general', 'report'))
Be sure to know that this means everyone could spam report your forum.
 
lks38ppy.png

Set this to yes. Then go to \XF\Entity\User canReport and replace
PHP:
        if (!$this->user_id || !$this->hasPermission('general', 'report'))
with
PHP:
        if (!$this->hasPermission('general', 'report'))
Be sure to know that this means everyone could spam report your forum.
That is true,I think it is best to have only registered users use the report options as it will help keep your forums stable.Because random people could just abuse the report feature.But each to their own how they want to run their site. :)
 
Top Bottom