Menu

#36 Perm Extensions

open
nobody
None
5
2002-10-01
2002-10-01
Joe Stewart
No

This patch contains extensions to the Perm class.

One only contains Ajay Sharma's change to add a "size"
parameter to perm_sel.

The second and third files change the permissions
system greatly.
Atomic permissions work basically as before. Inclusive
permissions are simply an array of permissions.

Instead of integer values, the permission check only
looks to see if the permission exists for the
authenticated user. This removes the 32 level limit of
the previous permission class.

Groups of permissions ( arrays of permissions ) can
function as User Groups/Roles.

Both files are functionally equivalent.

permxtnd.inc - Extends perm class
permx.inc - Replaces Perm instead.

Discussion

  • Joe Stewart

    Joe Stewart - 2002-10-01
     
  • Joe Stewart

    Joe Stewart - 2002-10-01

    Logged In: YES
    user_id=77269

    An example permissions array:

    var $permissions = array(
    "user" => true,
    "author" => true,
    "editor" => true,
    "supervisor" => true,
    "admin" => true
    );

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.