Posts Tagged ‘bitwise’

Modifying privileges stored binary using ExtJs

In an earlier post I showed you how to use binary operators to store multiple privileges/settings in a single integer field. Now I will present to you a simple control for visualizing and modifying such a value.

Posted by oyvind.kinsey on November 17th, 2009 under programming Tags: , , , ,  •  2 Comments

Storing multiple privileges/settings in a single integer

In many applications you have the need to set users privileges , and while there are many ways to do so, I prefer to using a single integer value to store a users privileges on any single entity. This has many advantages, you only have a single value representing all privileges you can add and […]

Posted by oyvind.kinsey on November 17th, 2009 under programming Tags: , , ,  •  10 Comments