Anyone done this?
Where should I start looking.
Anyone done this?
Where should I start looking.
$commentOwner = ( (int) OW::getUser()->getId() === (int) $comment->getUserId() );
to
$commentOwner = ( (int) OW::getUser()->isAdmin());
then i created a new customized error message "auth_ajax_error_delete_comment" in the lang_1.php file
echo json_encode(array('error' => OW::getLanguage()->text('base', 'auth_ajax_error_delete_comment')));
Still need to block the ability to delete posts from the newsfeed.
In the event_handler.php file (ow_plugins/newsfeed/classes)
On line 1038 I changed
$canRemove = OW::getUser()->isAuthenticated() && ( $params['action']['userId'] == OW::getUser()->getId() || OW::getUser()->isAuthorized('newsfeed') );
to
$canRemove = OW::getUser()->isAuthenticated() && OW::getUser()->isAdmin();