invoiceninja / ui

Invoice Ninja: Web admin portal built with React
https://app.invoicing.co
Other
55 stars 47 forks source link

401 unauthorized as a normal user when opening tasks overview: TypeError 'arguments' 'caller' 'callee' cannot be accessed in this context #1748

Closed DrDBanner closed 4 months ago

DrDBanner commented 5 months ago

Setup

Interface

Checklist

Describe the bug

As a normal user when entering the tasks module (with having the corresponding user-rights) a popup message appears: "... action unauthorized ...". Creating tasks and reading tasks is possible though. Console.log has some insights. See Screenshot.

Steps To Reproduce

Create user; Add rights to tasks and projects; login as user; open tasks module.

Expected Behavior

Not getting the popup.

Additional context

By giving the user admin rights the issue vanishes; Granting the user all rights possible, does not make the message disappear.

Screenshots

Bildschirmfoto 2024-05-07 um 15 17 44
turbo124 commented 5 months ago

@Civolilah I believe here this is seen when the user has view permissions but not create permissions for the entity.