We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

[SOLVED] Wall comments - where is the Delete Comment generated | Forum

Topic location: Forum home » Support » General Questions
Shane
Shane Nov 24 '13
Hi guys,


does anyone know where the Delete comment tooltip is generated. I have a requirement that all comments are not deleted except as an Admin user. 


Where would be the bets place to look for this functionality?

The Forum post is edited by Shane Nov 24 '13
Shane
Shane Nov 24 '13
Quote from Shane Magee Hi guys,


does anyone know where the Delete comment tooltip is generated. I have a requirement that all comments are not deleted except as an Admin user. 


Where would be the bets place to look for this functionality?


Located in the "
ow_system_plugins/base/components/comments_list.php" file 

redefined the conditions to display the delete button. 

from Line 111 

if ( $isOwnerAuthorized || $isModerator || (int) OW::getUser()->getId() === (int) $value->getUserId() )


to

if ( $isOwnerAuthorized || $isModerator ) 

 


The Forum post is edited by Shane Nov 26 '13
Kelsey Radley
Kelsey Radley Oct 15 '23
Believe me, you are amazing because you use only a few words to inspire others and that is an incredible talent. Bitlife
Jeffree Star
Jeffree Star Jan 14
Check your API documentation if your application has one. It might provide information on the endpoints related to comments slice master and the required permissions for deletion.
The Forum post is edited by Jeffree Star Jan 14