From a5d89741335272cb25d5ee236228b570e7144801 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 21 Mar 2008 21:28:39 +0000 Subject: Correcting more missing quotes on Roles.sql git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2113 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/modules/Roles.sql | 116 +++++++++++++++++++++++++------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'sql') diff --git a/sql/modules/Roles.sql b/sql/modules/Roles.sql index 2f4a2c8f..b46af0af 100644 --- a/sql/modules/Roles.sql +++ b/sql/modules/Roles.sql @@ -115,8 +115,8 @@ GRANT DELETE, INSERT ON vendortax TO "lsmb___create_contact"; CREATE ROLE "lsmb___contact_all_rights" WITH INHERIT NOLOGIN in role "lsmb___create_contact", -lsmb___edit_contact, -lsmb___read_contact; +"lsmb___edit_contact", +"lsmb___read_contact"; -- Batches and VOuchers CREATE ROLE "lsmb___create_batch" @@ -161,7 +161,7 @@ values (194, 'allow', 'lsmb___create_ar_transaction'); CREATE ROLE "lsmb___create_ar_transaction_voucher" WITH INHERIT NOLOGIN IN ROLE "lsmb___read_contact", -lsmb___create_batch; +"lsmb___create_batch"; GRANT INSERT ON ar TO "lsmb___create_ar_transaction_voucher"; GRANT ALL ON id TO "lsmb___create_ar_transaction_voucher"; @@ -173,7 +173,7 @@ GRANT ALL ON acc_trans_entry_id_seq TO "lsmb___create_ar_transac CREATE ROLE "lsmb___create_ar_invoice" WITH INHERIT NOLOGIN IN ROLE "lsmb___read_contact", -lsmb___create_ar_transaction; +"lsmb___create_ar_transaction"; GRANT INSERT ON invoice TO "lsmb___create_ar_invoice"; GRANT ALL ON invoice_id_seq TO "lsmb___create_ar_invoice"; @@ -189,8 +189,8 @@ values (195, 'allow', 'lsmb___create_ar_transaction'); CREATE ROLE "lsmb___create_ar_invoice_voucher" WITH INHERIT NOLOGIN IN ROLE "lsmb___read_contact", -lsmb___create_batch, -lsmb___create_ar_transaction_voucher; +"lsmb___create_batch", +"lsmb___create_ar_transaction_voucher"; GRANT INSERT ON invoice TO "lsmb___create_ar_invoice_voucher"; GRANT ALL ON invoice_id_seq TO "lsmb___create_ar_invoice_voucher"; @@ -232,13 +232,13 @@ values (15, 'allow', 'lsmb___list_ar_transactions'); CREATE ROLE "lsmb___ar_all_vouchers" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_ar_transaction_voucher", -lsmb___create_ar_invoice_voucher; +"lsmb___create_ar_invoice_voucher"; CREATE ROLE "lsmb___ar_all_transactions" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_ar_transaction", -lsmb___create_ar_invoice, -lsmb___list_ar_transactions; +"lsmb___create_ar_invoice", +"lsmb___list_ar_transactions"; CREATE ROLE "lsmb___create_sales_order" WITH INHERIT NOLOGIN @@ -303,11 +303,11 @@ values (71, 'allow', 'lsmb___list_sales_quotations'); CREATE ROLE "lsmb___all_ar" WITH INHERIT NOLOGIN IN ROLE "lsmb___ar_all_vouchers", -lsmb___ar_all_transactions, -lsmb___create_sales_order, -lsmb___create_sales_quotation, -lsmb___list_sales_orders, -lsmb___list_sales_quotations; +"lsmb___ar_all_transactions", +"lsmb___create_sales_order", +"lsmb___create_sales_quotation", +"lsmb___list_sales_orders", +"lsmb___list_sales_quotations"; -- AP CREATE ROLE "lsmb___create_ap_transaction" @@ -329,7 +329,7 @@ values (196, 'allow', 'lsmb___create_ap_transaction'); CREATE ROLE "lsmb___create_ap_transaction_voucher" WITH INHERIT NOLOGIN IN ROLE "lsmb___read_contact", -lsmb___create_batch; +"lsmb___create_batch"; GRANT INSERT ON ar TO "lsmb___create_ap_transaction_voucher"; GRANT ALL ON id TO "lsmb___create_ap_transaction_voucher"; @@ -341,7 +341,7 @@ GRANT ALL ON acc_trans_entry_id_seq TO "lsmb___create_ap_transac CREATE ROLE "lsmb___create_ap_invoice" WITH INHERIT NOLOGIN IN ROLE "lsmb___read_contact", -lsmb___create_ap_transaction; +"lsmb___create_ap_transaction"; GRANT INSERT ON invoice TO "lsmb___create_ap_invoice"; GRANT INSERT ON inventory TO "lsmb___create_ap_invoice"; @@ -357,7 +357,7 @@ values (197, 'allow', 'lsmb___create_ap_transaction'); CREATE ROLE "lsmb___create_ap_invoice_voucher" WITH INHERIT NOLOGIN IN ROLE "lsmb___read_contact", -lsmb___create_batch; +"lsmb___create_batch"; GRANT INSERT ON invoice TO "lsmb___create_ap_invoice_voucher"; GRANT INSERT ON inventory TO "lsmb___create_ap_invoice_voucher"; @@ -401,13 +401,13 @@ values (34, 'allow', 'lsmb___list_ap_transactions'); CREATE ROLE "lsmb___ap_all_vouchers" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_ap_transaction_voucher", -lsmb___create_ap_invoice_voucher; +"lsmb___create_ap_invoice_voucher"; CREATE ROLE "lsmb___ap_all_transactions" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_ap_transaction", -lsmb___create_ap_invoice, -lsmb___list_ap_transactions; +"lsmb___create_ap_invoice", +"lsmb___list_ap_transactions"; CREATE ROLE "lsmb___create_purchase_order" WITH INHERIT NOLOGIN @@ -472,11 +472,11 @@ values (72, 'allow', 'lsmb___list_purchase_rfqs'); CREATE ROLE "lsmb___all_ap" WITH INHERIT NOLOGIN IN ROLE "lsmb___ap_all_vouchers", -lsmb___ap_all_transactions, -lsmb___create_purchase_order, -lsmb___create_purchase_rfq, -lsmb___list_purchase_orders, -lsmb___list_purchase_rfqs; +"lsmb___ap_all_transactions", +"lsmb___create_purchase_order", +"lsmb___create_purchase_rfq", +"lsmb___list_purchase_orders", +"lsmb___list_purchase_rfqs"; -- POS CREATE ROLE "lsmb___create_pos_invoice" @@ -529,12 +529,12 @@ values (18, 'allow', 'lsmb___list_all_open'); CREATE ROLE "lsmb___pos_cashier" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_pos_invoice", -lsmb___close_till; +"lsmb___close_till"; CREATE ROLE "lsmb___all_pos" WITH INHERIT NOLOGIN IN ROLE "lsmb___pos_cashier", -lsmb___list_all_open; +"lsmb___list_all_open"; -- CASH CREATE ROLE "lsmb___reconcile" @@ -569,7 +569,7 @@ values (44, 'allow', 'lsmb__reconcile'); CREATE ROLE "lsmb___all_reconcile" WITH INHERIT NOLOGIN IN ROLE "lsmb___reconcile", -lsmb___approve_reconciliation; +"lsmb___approve_reconciliation"; CREATE ROLE "lsmb___process_payment" WITH INHERIT NOLOGIN @@ -605,8 +605,8 @@ values (47, 'allow', 'lsmb___process_receipt'); CREATE ROLE "lsmb___cash_all" WITH INHERIT NOLOGIN IN ROLE "lsmb___all_reconcile", -lsmb___process_payment, -lsmb___process_receipt; +"lsmb___process_payment", +"lsmb___process_receipt"; -- Inventory Control CREATE ROLE "lsmb___create_part" @@ -779,13 +779,13 @@ values (143, 'allow', 'lsmb___edit_warehouse'); CREATE ROLE "lsmb___all_inventory" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_part", -lsmb___inventory_reports, -lsmb___stock_assembly, -lsmb___ship_inventory, -lsmb___receive_inventory, -lsmb___transfer_inventory, -lsmb___edit_warehouse, -lsmb___create_warehouse; +"lsmb___inventory_reports", +"lsmb___stock_assembly", +"lsmb___ship_inventory", +"lsmb___receive_inventory", +"lsmb___transfer_inventory", +"lsmb___edit_warehouse", +"lsmb___create_warehouse"; -- GL CREATE ROLE "lsmb___create_transaction" @@ -821,7 +821,7 @@ GRANT ALL ON acc_trans_entry_id_seq TO "lsmb___create_transactio CREATE ROLE "lsmb___list_transactions" WITH INHERIT NOLOGIN IN ROLE "lsmb___list_ar_transactions", -lsmb___list_ap_transactions; +"lsmb___list_ap_transactions"; GRANT SELECT ON gl TO "lsmb___list_transactions"; @@ -856,9 +856,9 @@ GRANT SELECT ON voucher TO "lsmb___list_batches"; CREATE ROLE "lsmb___all_gl" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_transaction", -lsmb___create_transaction_voucher, -lsmb___run_yearend, -lsmb___list_transactions; +"lsmb___create_transaction_voucher", +"lsmb___run_yearend", +"lsmb___list_transactions"; -- PROJECTS CREATE ROLE "lsmb___create_project" @@ -980,9 +980,9 @@ values (61, 'allow', 'lsmb___consolidate_sales_orders'); CREATE ROLE "lsmb___manage_orders" WITH INHERIT NOLOGIN IN ROLE "lsmb___project_generate_orders", -lsmb___sales_to_purchase_orders, -lsmb___consolidate_purchase_orders, -lsmb___consolidate_sales_orders; +"lsmb___sales_to_purchase_orders", +"lsmb___consolidate_purchase_orders", +"lsmb___consolidate_sales_orders"; -- FINANCIAL REPORTS CREATE ROLE "lsmb___run_financial_reports" @@ -1122,10 +1122,10 @@ values (140, 'allow', 'lsmb___edit_account'); CREATE ROLE "lsmb___all_accounts" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_account", -lsmb___set_taxes, -lsmb___edit_account, -lsmb___create_gifi, -lsmb___edit_gifi; +"lsmb___set_taxes", +"lsmb___edit_account", +"lsmb___create_gifi", +"lsmb___edit_gifi"; CREATE ROLE "lsmb___create_department" WITH INHERIT NOLOGIN; @@ -1157,7 +1157,7 @@ values (146, 'allow', 'lsmb___edit_department'); CREATE ROLE "lsmb___all_department" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_department", -lsmb___edit_department; +"lsmb___edit_department"; CREATE ROLE "lsmb___create_business_type" WITH INHERIT NOLOGIN; @@ -1189,7 +1189,7 @@ values (149, 'allow', 'lsmb___edit_business_type'); CREATE ROLE "lsmb___all_business_type" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_business_type", -lsmb___edit_business_type; +"lsmb___edit_business_type"; CREATE ROLE "lsmb___create_sic" WITH INHERIT NOLOGIN; @@ -1220,7 +1220,7 @@ values (155, 'allow', 'lsmb___edit_sic'); CREATE ROLE "lsmb___all_sic" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_sic", -lsmb___edit_sic; +"lsmb___edit_sic"; CREATE ROLE "lsmb___edit_template" WITH INHERIT NOLOGIN; @@ -1302,11 +1302,11 @@ values (189, 'allow', 'lsmb___edit_template'); CREATE ROLE "lsmb___manage_system" WITH INHERIT NOLOGIN IN ROLE "lsmb___change_system_settings", -lsmb___all_accounts, -lsmb___all_department, -lsmb___all_business_type, -lsmb___all_sic, -lsmb___edit_template; +"lsmb___all_accounts", +"lsmb___all_department", +"lsmb___all_business_type", +"lsmb___all_sic", +"lsmb___edit_template"; -- Manual Translation CREATE ROLE "lsmb___create_language" @@ -1366,8 +1366,8 @@ values (108, 'allow', 'lsmb___create_project_translation'); CREATE ROLE "lsmb___all_manual_translation" WITH INHERIT NOLOGIN IN ROLE "lsmb___create_language", -lsmb___create_part_translation, -lsmb___create_project_translation; +"lsmb___create_part_translation", +"lsmb___create_project_translation"; GRANT SELECT ON custom_field_catalog TO public; GRANT SELECT ON custom_table_catalog TO public; -- cgit v1.2.3