Question: About Moderator Function

About Moderator Function

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.

J

Jaenudin

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.

  • MS

    Mian Saleem

    Answered

    Hello,

    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

  • J

    Jaenudin

    Answered

    How to add button users in header sir? https://ibb.co/MCyZCwG

  • MS

    Mian Saleem

    Answered

    Hello,

    The header view file is themes/default/views/header.php

    Thank you

  • Login to Reply