On Tue, Jul 19, 2011 at 2:21 PM, Roger Martín <[email protected]> wrote:
> Hi folks!!
>
> i've added two simple method in membership class: is_systemgod (trivial) and
> have_permission, that check if you have given permission or your group had a
> minor group level (you can see it in widget.php line 342)
> I will apply this changes in all aiki when my installation works fine ( i
> can't test changes).
>
> Probably there are some improvements to do:
> - aiki_users table has a field aiki_permissions that is unused. The idea is
> combine group and user permissions?

Yes, we should model our system after unix.

Honestly, I want to replace all nonstandard parts like systemgod, etc
with unix equivalents like is_root().

> - permissionS suggests me that you can have more that one.. but you know my
> English is horrible!!

Totally, we need proper users and groups on every widget for access.

> - the same table aiki_groups define groups ( the user permissions are
> collected from there) and permissions 'rules'. Perhaps is better split table
> or allow more than one permission by group.

Absolutely! We need proper users and groups, and defaults, per widget.

Great to have a firm api and update that, then have a nice simple UI
for adding users and groups to widgets, and also to manage users and
groups...its a fun project really.

part of the reason to model like this is so longer term, could plug in
ldap or pam to a linux/unix system to get the current users/groups for
free...which would be awesome!

Great work Roger!

Jon

-- 
Jon Phillips
http://rejon.org/ | http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (global) | +1-510-499-0894 (sf)
+86-187-1003-9974 (beijing)

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to