InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

[PUI] Check user permission when viewing pages

Open SchrodingersGat opened this issue 2 years ago • 7 comments

User might not have "view" permission for a given page.

If not, redirect away, or show error message?

SchrodingersGat avatar Oct 19 '23 12:10 SchrodingersGat

I would run a permission check and if it is a missing permission show an error, else log out (user might be unauthenticated).

matmair avatar Oct 19 '23 15:10 matmair

This issue seems stale. Please react to show this is still important.

github-actions[bot] avatar Dec 19 '23 11:12 github-actions[bot]

Not stale.

SchrodingersGat avatar Dec 19 '23 12:12 SchrodingersGat

This issue seems stale. Please react to show this is still important.

github-actions[bot] avatar Feb 19 '24 11:02 github-actions[bot]

Not stale

SchrodingersGat avatar Feb 19 '24 11:02 SchrodingersGat

@SchrodingersGat we now have permission tests in PUI - is this still valid?

matmair avatar May 07 '24 21:05 matmair

Yes this is still valid - we do not currently check if a user has the required permissions to view any particular page in PUI.

SchrodingersGat avatar May 07 '24 22:05 SchrodingersGat