Nolongerused3921 Posted September 20, 2006 Author Share Posted September 20, 2006 That makes no sense... The entire purpose of my design is to allow plug and play, if you have to create a new column for each module's permission... Well, not only is that NOT plug and play, but you'll end up having possibly hundreds of columns.The permissions would be split up before being read obviously. Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 21, 2006 Share Posted September 21, 2006 Read my post again.When using bitwise, you only need [b]one number for all permissions[/b] Quote Link to comment Share on other sites More sharing options...
Nolongerused3921 Posted September 21, 2006 Author Share Posted September 21, 2006 [quote author=Jenk link=topic=107752.msg438559#msg438559 date=1158825934]Read my post again.When using bitwise, you only need [b]one number for all permissions[/b][/quote]No no I understand that part perfectly, however you can't call it plug and play when the permissions are dependant on other modules. How would you know what bitwise has already been used, and what hasn't been? The results of accidentally using the same number twice for two different modules would... Be potentially [b]horrible[/b], and a possible vulnerability to boot. Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 21, 2006 Share Posted September 21, 2006 er..[code]$newpermission = $oldpermissions << 1;[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.