Skip to content

Add invoice access system + permissions field #11

@Izume01

Description

@Izume01

Description:

Need to build a permission system for invoices. Currently, all users can view all invoices if they have the URL. This must be restricted based on roles like OWNER, VIEWER, etc.

Feature Requirements:

Create a new enum InvoiceAccessType with values like VIEW, EDIT, DELETE, etc.

Add a new field to the Invoice model (e.g. permissions) or create a new relational table like InvoicePermission.

Owner of the invoice gets full access (VIEW, EDIT, DELETE).

Shared users get limited access (VIEW only or specific actions).

Restrict UI and API routes based on this access.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions