Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractSqlDataService.CreateSystemRole - added IsInitialScreen field #611

Merged
merged 1 commit into from Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/Origam.DA.Service/MsSqlDataService.cs
Expand Up @@ -381,8 +381,8 @@ public override string CreateSystemRole(string roleName)
@"INSERT INTO OrigamApplicationRole (Id, Name, Description, IsSystemRole , RecordCreated)
VALUES ('{0}', '{1}', '', 1, getdate())
-- add to the built-in SuperUser role
INSERT INTO OrigamRoleOrigamApplicationRole (Id, refOrigamRoleId, refOrigamApplicationRoleId, RecordCreated, IsFormReadOnly)
VALUES (newid(), '{2}', '{0}', getdate(), 0)",
INSERT INTO OrigamRoleOrigamApplicationRole (Id, refOrigamRoleId, refOrigamApplicationRoleId, RecordCreated, IsFormReadOnly, IsInitialScreen)
VALUES (newid(), '{2}', '{0}', getdate(), 0, 0)",
roleId, roleName, SecurityManager.BUILTIN_SUPER_USER_ROLE);
}

Expand Down
4 changes: 2 additions & 2 deletions backend/Origam.DA.Service/PgSqlDataService.cs
Expand Up @@ -319,9 +319,9 @@ public override string CreateSystemRole(string roleName)
systemRole.Append(Environment.NewLine);
systemRole.Append("-- add to the built-in SuperUser role ");
systemRole.Append(Environment.NewLine);
systemRole.Append(" INSERT INTO \"OrigamRoleOrigamApplicationRole\" (\"Id\", \"refOrigamRoleId\", \"refOrigamApplicationRoleId\", \"RecordCreated\", \"IsFormReadOnly\") ");
systemRole.Append(" INSERT INTO \"OrigamRoleOrigamApplicationRole\" (\"Id\", \"refOrigamRoleId\", \"refOrigamApplicationRoleId\", \"RecordCreated\", \"IsFormReadOnly\", \"IsInitialScreen\") ");
systemRole.Append(Environment.NewLine);
systemRole.Append(" VALUES (gen_random_uuid(), '{2}', '{0}', now(), false)");
systemRole.Append(" VALUES (gen_random_uuid(), '{2}', '{0}', now(), false, false)");
return string.Format(systemRole.ToString(),
roleId, roleName, SecurityManager.BUILTIN_SUPER_USER_ROLE);
}
Expand Down