Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added permission to save resource. #16

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Conversation

Geist5000
Copy link
Member

The save show and user showSaves route now returns the permission with every save which isn't owned by the authenticated user.

BREAKING CHANGES:

UserResource -> now returns save with tool and user data instead of save_id in invited and shared save

@Geist5000
Copy link
Member Author

"save_id" => $this->id,
"permission" => $this->pivot->permission,
"save" => new SimplerSaveResource($this->resource),
$this->merge(new PermissionResource($this->pivot))
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a breaking change

Copy link
Member Author

@Geist5000 Geist5000 left a comment

Choose a reason for hiding this comment

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

removed useless changes

@Geist5000 Geist5000 requested review from nic-schi and ma1160 August 16, 2022 15:39
@nic-schi nic-schi merged commit 2e568f6 into main Aug 18, 2022
@nic-schi nic-schi deleted the feature/permission-in-save branch August 25, 2022 14:55
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.

2 participants