Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented May 18, 2018

Fix the owner role resolver to correctly handle the case when a user from one model (e.g. Seller) is accessing an instance of another user-like model (e.g. Customer).

This PR supersedes #3823, #3679 and possible other older PRs. The change may be related to #3644.

@akki-ng @MartinCerny-awin could you please give this a try and let us know if the patch fixes the problem for you?

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

Fix the owner role resolver to correctly handle the case when a user
from one model (e.g. Seller) is accessing an instance of another
user-like model (e.g. Customer).
@bajtos bajtos force-pushed the fix/principal-type-polymorphic-user branch from ef17bb5 to 2aead13 Compare May 18, 2018 13:37
@bajtos bajtos merged commit 07e7592 into master May 21, 2018
@bajtos bajtos deleted the fix/principal-type-polymorphic-user branch May 21, 2018 07:16
@bajtos
Copy link
Member Author

bajtos commented May 21, 2018

Published in loopback@3.19.1, enjoy 🎉

@bajtos bajtos mentioned this pull request May 21, 2018
2 tasks
@akki-ng
Copy link

akki-ng commented May 24, 2018

@bajtos Great! Good work guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants