Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

RestrictToOwner now takes an array #231

Merged
merged 1 commit into from
Jul 7, 2016

Conversation

sscaff1
Copy link
Contributor

@sscaff1 sscaff1 commented Jul 5, 2016

Basic use case:

  • You have a model (let's call it a team model) with an array ids as admins
  • You want to check who has permission to modify the team by checking the authenticated user against the admin array

If you guys don't think this type of functionality is appropriate in the bundled hooks, I understand. Just thought I would throw it out there since I just ran into a use case for this functionality in the project I'm currently working on.

@ekryski
Copy link
Member

ekryski commented Jul 7, 2016

Yes I think this is good! Thanks @sscaff1! We're going to be revisiting/putting up a proposal for normalizing permissions and probably moving the auth hooks to their own repo but this will definitely go in for now! Thanks for the PR! 😄

@ekryski ekryski merged commit 50a37a2 into feathersjs-ecosystem:master Jul 7, 2016
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants