We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Authorisation Group and Actions not showing | Forum

Sean
Sean Jan 20 '14
Hi there,


I have a brand new install of 1.6 and I am creating a plugin to which I want to create an authorisation group and some actions. I've done this plenty of times.


The code I'm using (and has worked before) is this:


$authorization = OW::getAuthorization();

$groupName = 'videos';

$authorization->addGroup($groupName);

$authorization->addAction($groupName, 'view');

$authorization->addAction($groupName, 'download');


I can see that the group and the actions have been added into the database but they are not showing on the admin roles screen, or the moderators screen, so I can't assign role access.


I've not had this before, any ideas?

The Forum post is edited by Sean Jan 20 '14