pyrocms/pyrocms — pull request #866 by wingdigby (2011-11-05 21:13:17+00:00)
Title: Feature/permissions

Cleaned up, rebased to 2.0/develop... I think all ok.. thanks for patience in my git learning curve.
See screenshot at http://hyperlocal.co.za for what this is all about.

First commit:
Permissions: allow restrictions, allow sub-permission arrays (based on a db table). User helper modified as well.

Restrictions are off by default for admin
(whereas permissions have been on by default to now)
example: restrict to own blog posts only
Sub-permission arrays allows limiting access to a subset based on some db entity
example: blog categories, file folders
Sub-permissions allow for recursion where db table has parent-child structure.

Second commit is application of above to Blog module: restrict to own posts, addedit categories , and limit to selected categories.