Mastering Security checks easily with the power of Bitmasks

Sascha Peter Bajonczak
4 min readMar 22, 2024

You know, when you are developing a System for more than one user, you will be faced with the Endboss… Access rights.

I saw several code implementations like If else constructs that were multiple rows long, sometimes encapsulated into a single function but hevy to maintain. But there is a simpler solution that will I show you in this blog post.

--

--