Skip to content

Ability to skip visibility-plugin hiding attributes#1699

Merged
mrhwick merged 1 commit into
bookshelf:masterfrom
lorenzorapetti:visibility-override
Nov 20, 2017
Merged

Ability to skip visibility-plugin hiding attributes#1699
mrhwick merged 1 commit into
bookshelf:masterfrom
lorenzorapetti:visibility-override

Conversation

@lorenzorapetti

@lorenzorapetti lorenzorapetti commented Nov 18, 2017

Copy link
Copy Markdown
Contributor

Ability to skip visibility-plugin hiding attributes

Introduction

Introduces a new visibility attribute that you can pass to toJSON in order to ignore the hidden and visible attributes from the visibility-plugin.

Proposed solution

With user.toJSON({ visibility: false }) you can ignore the hidden and visible attributes.

Fixes bookshelf#951.

Now with `user.toJSON({ visibility: false })` you can ignore the `hidden` and `visible` attributes
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