The Roles screen only grants type M modules, so type A could never be granted. A url-less M module with no children stays out of the sidebar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
11 lines
762 B
SQL
11 lines
762 B
SQL
-- Co-Lite change 4b: Leads menu module and the Edit leads / Export leads action modules (area BO).
|
|
-- Edit and Export are url-less M modules: grantable on the Roles screen (only type M is), hidden from the sidebar
|
|
-- (a url-less M with no children renders nothing). They sit under the root so a role with only Event leads can be given export.
|
|
-- Target: `service-system`.`module`. Additive only. Run once.
|
|
USE `service-system`;
|
|
|
|
INSERT INTO `module` (`id`, `name`, `desc`, `area`, `type`, `parent`, `url`, `icon_name`) VALUES
|
|
(40400000, 'BO_LEADS', 'Leads', 'BO', 'M', 40000000, '/leads', 'Users'),
|
|
(40500000, 'BO_LEADS_EDIT', 'Edit leads', 'BO', 'M', 40000000, NULL, NULL),
|
|
(40600000, 'BO_LEADS_EXPORT', 'Export leads', 'BO', 'M', 40000000, NULL, NULL);
|