Question: Pos Payments Only For Super User

Pos Payments Only For Super User

Hi, I'm facing a problem with POS payments When create a user with any permissions we can't place a payments and receiving error message 500 Internal server error Call to member

KD

Khaled Dafar

Asked
Hi,

I'm facing a problem with POS payments
When create a user with any permissions we can't place a payments and receiving error message

500 Internal server error
Call to member function payments() on null

Please advice

Thanks
  • MS

    Mian Saleem

    Answered
    Hello,

    I didn't understand. Does the user have permission to add payment?

    Let me know so that I can check and suggest.

    Thank you
  • KD

    Khaled Dafar

    Answered
    Hi,

    Please check attached images for user permissions

    Thanks
  • KD

    Khaled Dafar

    Answered
    Hi,

    Would you please reply

    Thanks
  • MS

    Mian Saleem

    Answered
    Thank you for the screenshots. I will fix this in coming update.
  • KD

    Khaled Dafar

    Answered
    When updates will be out ?
  • KD

    Khaled Dafar

    Answered
    Hi,

    In which place we have to modify to make it work

    Thanks
  • MS

    Mian Saleem

    Answered
    Hello,

    The update will be this week.

    I am not sure if that is only 1 place but you can edit `modules/MPS/Models/Traits/BelongsToCustomer.php` and replace the line 11 with

    ```php
    return $this->belongsTo(Customer::class)->withoutGlobalScope('mine');
    ```

    Thank you
  • Login to Reply