I am a big fan of CanCan for Ruby on Rails and this addon is very similar. Imagine writing code like this to enable features based on authorization rules:
To achieve this, first install the ember-can addon:
ember install ember-can
Then create an ability file for the model at /app/abilities/post.js
You can also enforce the same rules in your route.
Credits & Links
Free Programming Books and lifetime access to IconApp.io
I am giving away some programming books and lifetime access to iconapp.io library of awesome icons. Check it out at https://gleam.io/XqHjW/rock-and-roll-with-emberjs
Share Your Expertise
Let us know if you have a good ember tip (you will get full credit)
If you are enjoying my daily tips please spread the word with this one-click tweet.
If you do NOT like the tips then please reply to this email and let me know how I can improve them.