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

I have a question, how to feasible that only admin can see the "users" page?

1 Answer

+5 votes
by
selected by
 
Best answer

1. Edit file qa-theme/<your-theme>/qa-theme.php

2. Add/Merge the initialize() function so that it looks this way:

public function initialize() {
    parent::initialize();
    if (qa_get_logged_in_level() < 100) {
        unset($this->content['navigation']['main']['user']);
        if (qa_request() === 'users')
            qa_redirect('');
    }
}

by
Thank you very much!
by
Is there any other way?
...