Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
558 views
in Q2A Core by

Hello,

In the admin area I set the permission for the line "Hiding or showing any post:" to Admins & Moderators, but authors can still hide their own questions.

Someone posted a code here but i can't figure out where exactly put this code in qa-page-question-view.php, and if this is replacing something or not.

$level=qa_get_logged_in_level(); 

if ($level>=QA_USER_LEVEL_ADMIN) { 
  $rules['hideable']=(!$post['hidden']) && ($rules['isbyuser'] || !$rules['queued']) &&
            (!$permiterror_hide_show) && ($notclosedbyother || !qa_user_permit_error('permit_hide_show'));
}

Does someone has a solution so only admin can hide questions ? 

thank you !!!

 

Q2A version: 1.6
by
I am looking for this as well.

I need to prevent users to hide their own posts.

Anyone ?

1 Answer

0 votes
by
I am looking for this too.
...