any more detailed docs or examples?
beeplin opened this issue ยท 12 comments
It seems that currently we don't have any completed docs/examples to show how the permission array and the three hooks works together.
It's coming. I have a bunch locally. Just finalizing the API. Will be up in the next couple days.
Any progress on this?
@ekryski any updates on this? It'd be nice to see some kind of public timeline.
guys, just checkout the source code and it's not so hard to figure out how to use. It works amazingly~
@beeplin with multiple branches of each different plugin it's not as easy as "just looking through the source code" and docs would help a LOT with new users of this project.
+1
+1
@ekryski Any ETA on the "one more breaking change and going out" for those who feel less adventurous? :)
Check #25 its basically the same you just need service: 'someSerivceName'
instead of globalHook: true
.
Add a permissions
field that is an array to your user model and set it to ['*']
.
Run your app using DEBUG=feathers-permissions:hooks:check-permissions npm start
so you see which permissions would enable the current request.
@gorork no sorry. Been pretty busy with work and we found some limitations with the format messages:*:[id]
. The problem is that doesn't really scale if you have a lot of records you need to have permissions on.
We need an isOwner
hook and want to implement hooks and filters as described in this thread: #4. All of the common hooks like some
, when
, every
, unless
are all in. It's now a matter of polishing this up to respect that discussion, ensure it scales, and have setPermissions
work as well.
I've had very limited time for open source stuff as of late. I have a bunch code written locally for this stuff but it's been a while since I looked at it and is still experimental.
If someone wants to take a crack at PRs then I'd be more than happy to review but I'll post an update on here when I've pushed up new code.