Ticket #152 (closed enhancement: fixed)

Opened 10 months ago

Last modified 9 months ago

Update ACL to work with new UserGroup framework

Reported by: skippy Owned by:
Priority: major Milestone: 0.4
Component: Habari Core Software Version: SVN
Keywords: has_patch Cc:

Description

Our ACL class hasn't yet been updated to work with the new UserGroup functionality. Attached is a patch to remedy that.

Attachments

acl.diff (8.7 kB) - added by skippy 10 months ago.
acl.php (7.5 kB) - added by skippy 10 months ago.
usergroup.php (14.2 kB) - added by michaeltwofish 10 months ago.

Change History

Changed 10 months ago by skippy

Changed 10 months ago by skippy

Attaching a revised version of the ACL.php class which incorporates the functionality Michael supplied in the Permissions.php class.

Changed 10 months ago by skippy

Changed 10 months ago by michaeltwofish

Changed 10 months ago by michaeltwofish

I've attached an updated version (from skippy's latest) of the UserGroup class. It implements $group->permissions_granted() and $group->permissions_denied() and fixes a couple of minor bugs (typos).

I believe there is a bug in construct() where the permissions from the db are assigned to the private arrays. I don't know what's causing it. I describe it in #156.

Changed 10 months ago by morydd

  • keywords has_patch added

Changed 9 months ago by miklb

  • status changed from new to closed
  • resolution set to fixed

r1343 covers this ticket - marking closed

Note: See TracTickets for help on using tickets.