Simple Permissions - programmatically

Permalink
Having used advanced permissions in anger several times, I want to keep things simple and just keep Simple Permission enabled.

I can find loads of info on advanced, but I'd like to see some examples of programmatically setting the options that are in the dashboard - like "Choose which users and groups may edit your site." for starters.

Mainly I'm working with groups, and just want to enable editing and file management via a package.

Anyone done this?

moth
 
SkyBlueSofa replied on at Permalink Reply
SkyBlueSofa
Did you ever figure this out?
moth replied on at Permalink Reply
moth
Hello.
Short answer, yes I did. Long answer, it wasn't easy, and there's not really a succinct set of functions/methods I can point you in the direction of.

The best way for me to show you is by the magic of code. I built a User Management package that creates a bunch of predefined users, across a series of groups, and then applies permissions to the groups to control dashboard and file manager access.

You'll want to look in the controller - specifically at configureGroupPagePermissions()

https://github.com/moth/concrete5_user_management...