Hello!
I have a problem with the permissions and advanced modules:
I have advanced module called "epic" and simple module inside called "markets" i need to set permission (for example, only editing),
but when I add the permissions like -
'permission' => array('markets', 'create', 'edit', 'publish', 'delete'),
(tried to write in different ways, the result is the same),
and adding to database -
INSERT INTO `fuel_permissions` (`id`, `description`, `name`, `active`)
VALUES
(NULL,'Markets','markets','yes'),
(NULL,'Markets: Create','markets/create','yes'),
(NULL,'Markets: Edit','markets/edit','yes'),
(NULL,'Markets: Publish','markets/publish','yes'),
(NULL,'Markets: Delete','markets/delete','yes');
Login as EDITOR and menu item does not appear in the module, if i go 'fuel/epic/markets', module loads, but i can not do anything other than sorting, however: if change
'permission' => 'markets' -
menu item appears, but the permissions doesn't work correctly, user has full access to the module(not only 'edit'), if i use simple module outside advanced module, setting
'permission' => array('markets', 'create', 'edit', 'publish', 'delete') -
everything works as expected...
Please tell me where could be the problem.
and sorry for my bad english
Comments
I've posted a fix in the development branch:
https://github.com/daylightstudio/FUEL-CMS/commit/4bba028e0c7e9e8650da90d798c718586a06a205
However, it works properly if use short hand:
'permission' => array('markets', 'create', 'edit', 'publish', 'delete'),
in long hand:
'permission' => array('markets', 'markets/create', 'markets/edit', 'markets/publish', 'markets/delete'),
bug still appears...
Thanks again for quick response!
'permission' => array('markets', 'create' => 'markets/create', 'edit' => 'markets/edit', 'publish' => 'markets/publish', 'delete' => 'markets/delete'),
User Management
Thanks for notice!
DB error: Fuel Tags Model Class
page_404: Daylight's Blog
Thanks admin!