This commit is contained in:
2024-03-07 17:01:50 +01:00
parent 859a324c7e
commit 1873e2b8de
6 changed files with 1990 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
USE [Arizona]
--pharmacy
GRANT ALTER ON dbo.[Stock_transaction_master] TO [dbRoleDevUsr]
GRANT ALTER ON dbo.[Document_line] TO [dbRoleDevUsr]
GRANT ALTER ON dbo.[Document_line_link] TO [dbRoleDevUsr]
--central
GRANT ALTER ON dbo.[Entry] TO [dbRoleDevUsr]

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,34 @@
USE [Arizona]
BEGIN TRANSACTION
SET XACT_ABORT ON;
--dbRoleDevUsr
REVOKE SELECT ON [wkl].[DocumentSignature] TO [dbRoleDevUsr]
REVOKE UPDATE ON [wkl].[DocumentSignature] TO [dbRoleDevUsr]
EXEC [sys].[sp_addrolemember] @rolename = 'db_datawriter',
@membername = 'dbRoleDevUsr'
EXEC [sys].[sp_addrolemember] @rolename = 'db_datareader',
@membername = 'dbRoleDevUsr'
--dbRoleIttechUsr
REVOKE SELECT ON [wkl].[DocumentSignature] TO [dbRoleIttechUsr]
REVOKE UPDATE ON [wkl].[DocumentSignature] TO [dbRoleIttechUsr]
--dbRoleTPPos
REVOKE SELECT ON [wkl].[DocumentSignature] TO [dbRoleTPPos]
REVOKE INSERT ON [wkl].[DocumentSignature] TO [dbRoleTPPos]
REVOKE SELECT ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
REVOKE UPDATE ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
REVOKE SELECT ON [dbo].[Bmc_application_key] TO [dbRoleTPPos]
REVOKE UPDATE ON [dbo].[Bmc_application_key] TO [dbRoleTPPos]
REVOKE SELECT ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
REVOKE UPDATE ON [dbo].[Bmc_application_default] TO [dbRoleTPPos]
REVOKE SELECT ON [dbo].[IT_config_setting] TO [dbRoleTPPos]
REVOKE UPDATE ON [dbo].[IT_config_setting] TO [dbRoleTPPos]
REVOKE SELECT ON [dbo].[Organizational_unit] TO [dbRoleTPPos]
REVOKE UPDATE ON [dbo].[Organizational_unit] TO [dbRoleTPPos]
--ROLLBACK TRANSACTION
COMMIT TRANSACTION