Blog, Backup & UserGuide module permissions issues - solved hopefully.
Hello again,
I just thought I would mention the following issues I came across whilst installing the Blog, Backup and UserGuide Modules to Fuel 1.0 from their seperate repos.
Blog: I needed to change the 'permission' => 'blog_user' to 'permission' => 'blog/user' (and for links,posts etc) in blog_fuel_modules.php, in order for a User to have access to the blog in fuel admin.
Backup: The installed permission was for 'backup' but it needed to be changed to 'tools/backup' to allow access to Users.
User Guide: No permission is installed, so I needed to add 'tools/user_guide' to Permissions to allow User access to it.
Along the same vein, I noticed that for my own simple modules, when I created edit,create,delete,publish permissions, I also needed to make a generic permission for the module for Users to have access. EG for a simple module called 'events', I needed to make an 'events' permission as well as 'events/create' and so on. This latter point is just an observation rather than a bug!
Many thanks
Guy
Comments
It seems the notification for the last Back Up (backup/views/_admin/dashboard.php) doesn't work...
Guy
I've posted a fix for the backup module notification. You'll need to add it to the 'dashboards' parameter in the MY_fuel.php config file for it to show up.
My reference to the documentation was to User Management in the General Topics, under the assigning permissions to Simple Modules, where it describes the Pages module as a good example: 'permission' => array('edit' => 'pages', 'publish' => 'pages_publish', 'delete' => 'pages_delete'),
but actually the permissions (in config/fuel_modules.php) are:
'permission' => array('pages', 'create', 'edit', 'pages/upload' => 'pages/create', 'publish', 'delete'),
For my simple modules I have not specified the 'permission' array in My_fuel_modules, instead I found making a Permission with 'events/create' etc worked.
Of course this could be me not doing it correctly...
PS Overall I really like fuel!
Guy