I\'m considering the best way to design a permissions system for an \"admin\" web application. The application is likely to have many users, each of whom could be assigned a
I've done it both ways. But I don't use bit masks much anymore. A separate table would be fine that you can use as a cross reference, given a user id or a group id as a foreign key.
UserID | Permission
===================
1 | 1 1 representing manage users
1 | 2 2 being manger products
2 | 3
This way would be easier to maintain and add on to later on.
I'd also use a separate table to manage what the permissions are.
PermissionID | Description
==========================
1 | Manage Users
2 | Manager Products