J
Asked
Hi,
Do moderators only have post editing functions? can the moderator have a function to accept new members, so that they can help admins in accepting new members.
Do moderators only have post editing functions? can the moderator have a function to accept new members, so that they can help admins in accepting new members.
- MSAnsweredHello,
No, moderators are not allowed to change status or edit users.
If you want to allow them then you can edit `users` emthod of `app/controllers/Auth.php` and change `if (!$this->Admin) {` to
```
if (!$this->Admin && !$this->Moderator) {
```
To allow them to udpate user, you need to edit `edit_user` of same controller and change `if (!$this->loggedIn || !$this->Admin && $id != $this->session->userdata('user_id')) {` to
```
if (!$this->loggedIn || !$this->Admin && !$this->Moderator && $id != $this->session->userdata('user_id')) {
```
Thank you - JAnsweredHow to add button users in header sir?
https://ibb.co/MCyZCwG - MSAnsweredHello,
The header view file is `themes/default/views/header.php`
Thank you - Login to Reply