Tuesday 15 June 2010

access control - Show account specific modules in php -


I am working on a site that has different user accounts - so an artist, fan, or site account type Based on this, I want to show different modules in the member dashboard area.

If the statement sounds too dirty then use it and I am just wondering what other people's views will be like?

Use ACL classes, in which you record roles and access levels for entry level examples If it can be inheritable, then it is only for

  if (acl.isAllowed (user.getLevel (), "venue.events.edit")) {// .... }   

List of an example using the Zand Framework 2.

No comments:

Post a Comment