diff --git a/db/changes/231801/00-userAcl.sql b/db/changes/231801/00-userAcl.sql index f84a4d7c3..9eb3ebf28 100644 --- a/db/changes/231801/00-userAcl.sql +++ b/db/changes/231801/00-userAcl.sql @@ -2,7 +2,7 @@ INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalTyp VALUES ('VnUser','acl','READ','ALLOW','ROLE','account'), ('VnUser','getCurrentUserData','READ','ALLOW','ROLE','account'), - ('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'), ('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'); + ('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'), ('Account','exists','READ','ALLOW','ROLE','account'); INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId) diff --git a/db/changes/232601/00-user.sql b/db/changes/232601/00-user.sql deleted file mode 100644 index 2a2a522c5..000000000 --- a/db/changes/232601/00-user.sql +++ /dev/null @@ -1,2 +0,0 @@ -alter table `account`.`user` - add `twoFactor` ENUM ('email') null comment 'Two-factor auth type'; \ No newline at end of file diff --git a/db/changes/232601/00-authCode.sql b/db/changes/232801/00-authCode.sql similarity index 100% rename from db/changes/232601/00-authCode.sql rename to db/changes/232801/00-authCode.sql diff --git a/db/changes/232601/00-department.sql b/db/changes/232801/00-department.sql similarity index 100% rename from db/changes/232601/00-department.sql rename to db/changes/232801/00-department.sql diff --git a/db/changes/232801/00-user.sql b/db/changes/232801/00-user.sql new file mode 100644 index 000000000..376b3dbb1 --- /dev/null +++ b/db/changes/232801/00-user.sql @@ -0,0 +1,5 @@ +alter table `account`.`user` + add `twoFactor` ENUM ('email') null comment 'Two-factor auth type'; + +DELETE FROM `salix`.`ACL` + WHERE model = 'VnUser' AND property = 'changePassword';