alvin567 Posted July 20, 2012 Share Posted July 20, 2012 Hi there, I am trying to design a php based access control list for my application, the idea is to disallow members to access certain functionalities in my systems Filelist(file_id,filename) Member_Access(member_id,file_access) Member(member_id,name) Is it a good ideas? The idea is revolved around RBAC,and ACL? Quote Link to comment Share on other sites More sharing options...
xyph Posted July 20, 2012 Share Posted July 20, 2012 I would use a bit-wise solution, myself. Either each module would be given a static, permanent values of 2^(x), where x is an incrementing integer starting at 0 or 1, or you'd have a set number of access levels, and each module defines the access level needed. A user is given an access level integer that defines their specific access level or which specific modules they have access to. If you provided more details, I might be able to provide a more specific suggestion. Quote Link to comment Share on other sites More sharing options...
requinix Posted July 20, 2012 Share Posted July 20, 2012 If you have a fairly small number of privileges and know that it can't expand at runtime then bitwise is definitely the easiest solution (though there might be a bit of a learning curve first). Otherwise it's a pain and it's easier managed as a "normal" set of key/value pairs stored somewhere. Quote Link to comment Share on other sites More sharing options...
Tarential Posted July 21, 2012 Share Posted July 21, 2012 I usually apply permissions to groups and targets, then put users in groups. This can make management easier, but it also adds another layer of complexity to the system. Quote Link to comment Share on other sites More sharing options...
alvin567 Posted July 22, 2012 Author Share Posted July 22, 2012 Can I ask you: ini_set('display_errors',1); error_reporting(-1); what does this meants? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted July 22, 2012 Share Posted July 22, 2012 Here you go: clicky! 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.