[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6666] trunk/sql/modules/test/Roles.sql
- Subject: SF.net SVN: ledger-smb:[6666] trunk/sql/modules/test/Roles.sql
- From: ..hidden..
- Date: Mon, 27 Jan 2014 09:18:50 +0000
Revision: 6666
http://sourceforge.net/p/ledger-smb/code/6666
Author: einhverfr
Date: 2014-01-27 09:18:49 +0000 (Mon, 27 Jan 2014)
Log Message:
-----------
More test cases for read-only permissions
Modified Paths:
--------------
trunk/sql/modules/test/Roles.sql
Modified: trunk/sql/modules/test/Roles.sql
===================================================================
--- trunk/sql/modules/test/Roles.sql 2014-01-27 08:44:24 UTC (rev 6665)
+++ trunk/sql/modules/test/Roles.sql 2014-01-27 09:18:49 UTC (rev 6666)
@@ -52,6 +52,17 @@
SELECT 'file_read can read file_part',
test__has_select_permission('file_read', 'file_part');
+INSERT INTO test_result(test_name, success)
+SELECT 'contact_read can read ' || t,
+ test__has_select_permission('contact_read', t)
+ FROM unnest(ARRAY['partsvendor'::text, 'partscustomer', 'taxcategory',
+ 'entity', 'company', 'location', 'entity_to_location',
+ 'entity_to_contact', 'person', 'entity_credit_account',
+ 'contact_class', 'eca_tax', 'entity_class', 'entity_note',
+ 'entity_bank_account', 'entity_other_name', 'location_class',
+ 'person_to_company', 'eca_to_contact', 'eca_to_location', 'eca_note'
+ ]) t;
+
-- TEST RESULTS
SELECT test_name, success FROM test_result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits