Many applications restrict access to some features for some users for various reasons. For example: Only premium users get access to extra features. Only supervisors can edit product categories. I went on a hunt to gather patterns and techniques for handling the logic around user capabilities in client-side apps. Join me on a safari through the approaches, and I’ll tell you what I have learned.
A video of this talk as given at Nordic.js can be viewed here:
https://www.youtube.com/watch?v=_CgYWacSTmQ
Note: the code snippets are optimized for readability. Don't copy and paste them ;)