Can a normal user manage module contents?
I've created a simple module called "News" where I can create news items from the admin. On the public site: the news items are listed in a single page (/news), each with a link to its own page (/news/$id). However, I can't seem to create a normal user (with non-admin permissions) that has access to this module? The idea is to let the fictional client add/edit news items on the site.
Am I missing something?
Thanks.
Comments
i believe you need create permission for news module and assign the permission to normal user in order to access the news module.
another things is you need to load the module with the permission config
$config['modules']['news'] = array('permission' => 'news',);
p/s admin please correct if i m wrong
Thanks for your responses. I'm afraid I still don't fully understand what I need to do. I've updated the MY_fuel_modules.php file with this:
$config['modules']['news'] = array(
'preview_path' => 'news/{id}',
'permission' => 'news'
);
Admin, as you said, I wouldn't need to specify the above permission pair as the default is 'news' anyway.
But I still can't see the News module in the Permissions list in the admin?
Thanks again.