interesting thread :-) I simply add permisions to a table, things like "add topic/add thread/add message/edit .." Each permission gets an ID number 1-->32
A "groups" table does name-->permission lookups like: Administrator --> 2^permisson + 2^ permission (etc) so the "groups" table would have "administrator-->16382" a "user" would get a "1284" The "user table" has a "Permission" field and then the "fuses" allow/deny actions based on the users group (just a number now) and the action. It seemed like a good ida at the time :-) The bonus is that you can deny posting rights to a whole group or an individual user by modifying iether the group table or the user table. Granted the "bit" math for the tags that build the bit numbers looks "odd" but (as Lee and many pointed out) the fuseactions only ever need to compare the UserPermission variable to the FuseActionPermission. Just thought I'd share :-) ==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================
