fix(db): make Edit leads and Export leads grantable url-less M modules

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
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-11-27 16:12:21 +08:00
1 parent 6ab495ad3e
commit 6855906cf1
4 files changed
+13 -10

No files matched your search

+2 -2
View File
@@ -116,5 +116,5 @@ ALTER TABLE `event_lead` ADD KEY `idx_event_lead_company_lead` (`company_id`, `l
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', 'A', 40000000, NULL, NULL),
(40600000, 'BO_LEADS_EXPORT', 'Export leads', 'BO', 'A', 40000000, NULL, NULL);
(40500000, 'BO_LEADS_EDIT', 'Edit leads', 'BO', 'M', 40000000, NULL, NULL),
(40600000, 'BO_LEADS_EXPORT', 'Export leads', 'BO', 'M', 40000000, NULL, NULL);