Skip to content

Add user shares and publicshares permission - #338

Merged
LucHeart merged 1 commit into
OpenShock:developfrom
ComputerElite:develop
Jul 28, 2026
Merged

Add user shares and publicshares permission#338
LucHeart merged 1 commit into
OpenShock:developfrom
ComputerElite:develop

Conversation

@ComputerElite

@ComputerElite ComputerElite commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

I added new Api token permissions for managing user shares and public shares. Differentiated between edit and pause.

Closes #287


Open in Stage

@ghost

ghost commented Jul 14, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 4 individual chapters for you:

Title
1 Define new share permission types
2 Migrate database for new API token permissions
3 Enforce permissions on public share endpoints
4 Enforce permissions on user share endpoints
Open in Stage

Chapters generated by Stage for commit c893d28 on Jul 14, 2026 9:06am UTC.

/// </summary>
/// <response code="200">All public shares for the current user</response>
[HttpGet]
[TokenPermission(PermissionType.Publicshares_Edit)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might put that behind a read perm in the future, but edit would inherit it obviously. so this is fine for now

@LucHeart
LucHeart merged commit 6c2792f into OpenShock:develop Jul 28, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New ApiToken Permission

2 participants