Skip to content

Commit cc0af12

Browse files
Add permission to 'moveNetworkAclItem' API method in default roles
1 parent 5ce87bd commit cc0af12

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

engine/schema/src/main/resources/META-INF/db/schema-41100to41200.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ ALTER TABLE `cloud`.`network_acl_item` ADD COLUMN `reason` VARCHAR(2500) AFTER `
2626
ALTER TABLE `cloud`.`alert` ADD COLUMN `content` VARCHAR(5000);
2727

2828
-- Fix the name of the column used to hold IPv4 range in 'vlan' table.
29-
ALTER TABLE `vlan` CHANGE `description` `ip4_range` varchar(255);
29+
ALTER TABLE `vlan` CHANGE `description` `ip4_range` varchar(255);
30+
31+
-- [CLOUDSTACK-10344] bug when moving ACL rules (change order with drag and drop)
32+
-- We are only adding the permission to the default rules. Any custom rule must be configured by the root admin.
33+
INSERT INTO `cloud`.`role_permissions` (`uuid`, `role_id`, `rule`, `permission`, `sort_order`) values (UUID(), 2, 'moveNetworkAclItem', 'ALLOW', 100) ON DUPLICATE KEY UPDATE rule=rule;
34+
INSERT INTO `cloud`.`role_permissions` (`uuid`, `role_id`, `rule`, `permission`, `sort_order`) values (UUID(), 3, 'moveNetworkAclItem', 'ALLOW', 302) ON DUPLICATE KEY UPDATE rule=rule;
35+
INSERT INTO `cloud`.`role_permissions` (`uuid`, `role_id`, `rule`, `permission`, `sort_order`) values (UUID(), 4, 'moveNetworkAclItem', 'ALLOW', 260) ON DUPLICATE KEY UPDATE rule=rule;

0 commit comments

Comments
 (0)