public function deleteByPrimaryKey($id) {
if(!osc_is_admin_user_logged_in()) { return false; }
@morfikWell you can try to hide all remove buttons but still not supergood.You could go to model/Item.php in core, find this line:Code: [Select] public function deleteByPrimaryKey($id) {and after it put:Code: [Select]if(!osc_is_admin_user_logged_in()) { return false; }
Quote from: MB Themes on March 07, 2023, 01:19:31 PM@morfikWell you can try to hide all remove buttons but still not supergood.You could go to model/Item.php in core, find this line:Code: [Select] public function deleteByPrimaryKey($id) {and after it put:Code: [Select]if(!osc_is_admin_user_logged_in()) { return false; }This code worked in previous versions, but after updating to the latest version, it no longer works. Users can delete their ads. Is there an update to the code?