Missing rbac_role_permissions #10794

Closed
ghost opened this Issue Sep 12, 2013 · 4 comments

Comments

Projects
None yet
3 participants
@ghost

ghost commented Sep 12, 2013

Core Revision: bd8d0cf
TDB Revision: TDB 335.52 with last updates

There are missing rbac_role_permissions
('219','220','224','228','229','460','720','731','732')
from rbac_permissions

Fix (With incorrect roleId)

INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '219');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '220');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '224');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '228');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '229');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '460');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '720');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '731');
INSERT INTO rbac_role_permissions (roleId, permissionId) VALUES ('4', '732');

@Spp-

This comment has been minimized.

Show comment
Hide comment
@Spp-

Spp- Sep 12, 2013

Contributor

All those permissions but 460 are not assigned to any role on purpose, those are commands only for console.

460 should be assigned to role 4.

Contributor

Spp- commented Sep 12, 2013

All those permissions but 460 are not assigned to any role on purpose, those are commands only for console.

460 should be assigned to role 4.

@Aokromes

This comment has been minimized.

Show comment
Hide comment
@Aokromes

Aokromes Feb 28, 2014

Member

base auth.sql needs to be updated.

INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
(196, 460);
Member

Aokromes commented Feb 28, 2014

base auth.sql needs to be updated.

INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
(196, 460);

@Aokromes Aokromes closed this Feb 28, 2014

@Aokromes Aokromes reopened this Feb 28, 2014

@Prederic

This comment has been minimized.

Show comment
Hide comment
@Prederic

Prederic Mar 15, 2014

DROP TABLE IF EXISTS `rbac_role_permissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rbac_role_permissions` (
  `roleId` int(10) unsigned NOT NULL COMMENT 'Role id',
  `permissionId` int(10) unsigned NOT NULL COMMENT 'Permission id',
  PRIMARY KEY (`roleId`,`permissionId`),
  KEY `fk__rbac_role_permissions__rbac_permissions` (`permissionId`),
  CONSTRAINT `fk__rbac_role_permissions__rbac_permissions` FOREIGN KEY (`permissionId`) REFERENCES `rbac_permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='?????';
/*!40101 SET character_set_client = @saved_cs_client */;

like this?

DROP TABLE IF EXISTS `rbac_role_permissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rbac_role_permissions` (
  `roleId` int(10) unsigned NOT NULL COMMENT 'Role id',
  `permissionId` int(10) unsigned NOT NULL COMMENT 'Permission id',
  PRIMARY KEY (`roleId`,`permissionId`),
  KEY `fk__rbac_role_permissions__rbac_permissions` (`permissionId`),
  CONSTRAINT `fk__rbac_role_permissions__rbac_permissions` FOREIGN KEY (`permissionId`) REFERENCES `rbac_permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='?????';
/*!40101 SET character_set_client = @saved_cs_client */;

like this?

@Aokromes

This comment has been minimized.

Show comment
Hide comment
@Aokromes

Aokromes May 2, 2014

Member

Fixed already.

Member

Aokromes commented May 2, 2014

Fixed already.

@Aokromes Aokromes closed this May 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment