work on determining which secrets accessible to user
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-09 10:59:27 +11:00
parent 7363936cd5
commit 07fd43bf33
5 changed files with 167 additions and 73 deletions

View File

@@ -374,6 +374,8 @@ func CreateTables() {
FOREIGN KEY (GroupId) REFERENCES groups(GroupId)
);
INSERT INTO permissions SELECT PermissionId, SafeId, UserId, GroupId, '' AS Description, 0 as ReadOnly FROM _permissions_old;
UPDATE permissions SET ReadOnly = 0 WHERE ReadOnly is null;
UPDATE permissions SET Description = '' WHERE Description is null;
COMMIT;
PRAGMA foreign_keys=on;
DROP TABLE _permissions_old;