Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
–1 vote
665 views
in Q2A Core by
edited by

Hi everyone, I have a special case where only one specific user should (next to the admin) get the right to edit all answers and posts. But he should not get admin rights.

I have already used all available rangs from Editor, Moderator, etc. He should stay moderator together with some other users.

The way I have to go now is to change the core to permit his userid to edit A and C.

How I am doing it:

qa-app-users.php

After line:

$error=qa_permit_error($permitoption, $userid, qa_get_logged_in_level(), $flags);

I added:

        if($userid==123 && $error == 'level') {
            return false;
        }
 

because a level error would be thrown otherwise.

Any other idea how to solve this?

Thanks,
Kai

Q2A version: 1.6.3
by
Why the downvote? I hoped to get a better solution than hacking the core. That's why I asked.

Please log in or register to answer this question.

...