Example #1
0
 protected function deleteOnSubmit($base)
 {
     $currentuser = users::getCurrentUser();
     if ($currentuser['user_type'] < $this->feature['ftr_edit_user_type']) {
         message::set('You do not have rights to delete this feature', 'alert');
         url::redirect(Router_Core::$controller);
     }
     parent::deleteOnSubmit($base);
 }