Jump to content

PHP/Block user access to the system?


alvin567

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.