Question: Admin Can Not Edit Notification

Admin Can Not Edit Notification

Please create a notification from owner. Now login as admin named 'user' and try to edit this notification. the system hangs

DC

davinder chawla

Asked
Please create a notification from owner. Now login as admin named 'user' and try to edit this notification.

the system hangs
  • DC

    davinder chawla

    Answered
    i tried in demo, there it edits
  • MS

    Mian Saleem

    Answered
    Hello,

    No. Admins don't have edit permission. Admins can add the notifications but can't edit.

    If you want to allow them, you can modify the `edit` method of `app/controllers/admin/Notifications.php` and remove these lines

    ```
    if (!$this->Owner) {
    $this->session->set_flashdata('warning', lang('access_denied'));
    redirect($_SERVER['HTTP_REFERER']);
    }
    ```

    Thank you
  • DC

    davinder chawla

    Answered
    THAT IS EXACTLY WHAT I AM SAYING. SYSTEM HANGS......... INSTEAD OF RETURNING TO PREVIOUS PAGE. THE SYSTEM KEEPS ON BUFFERING. EITHER YOU SHOULD REMOVE EDIT BUTTON FROM ADMIN NOTIFICATION PAGE. OR SYSTEM SHOULD GIVE (PERMISSION DENIED MESSAGE AND GO BACK) . IF YOU WANT, I CAN POST IT IN BUGS SECTION.
  • MS

    Mian Saleem

    Answered
    I am very blur to read and understand in UPPERCASE, can you please write normal. Thank you
  • DC

    davinder chawla

    Answered
    will keep in mind next time, NOT to use capitals
  • MS

    Mian Saleem

    Answered
    Hello,

    The edit model for admins will be fixed in next update.

    Thank you
  • Login to Reply