details: https://code.openbravo.com/erp/devel/pi/rev/85a366534d3c
changeset: 15195:85a366534d3c
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Wed Jan 25 10:13:04 2012 +0100
summary: fixed bug 19556: "Client + Organization" roles cannot create data
for Organization *
diffstat:
src/org/openbravo/dal/core/OBContext.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r f3877b10d80d -r 85a366534d3c src/org/openbravo/dal/core/OBContext.java
--- a/src/org/openbravo/dal/core/OBContext.java Wed Jan 25 10:12:29 2012 +0100
+++ b/src/org/openbravo/dal/core/OBContext.java Wed Jan 25 10:13:04 2012 +0100
@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2008-2010 Openbravo SLU
+ * All portions are Copyright (C) 2008-2012 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
@@ -526,8 +526,9 @@
private void setWritableOrganizations(Role role) {
writableOrganizations = new HashSet<String>();
final String localUserLevel = getUserLevel();
- if (localUserLevel.contains("S") || localUserLevel.equals("C")) {
- writableOrganizations.add("0"); // force org *
+ if (localUserLevel.contains("S") || localUserLevel.contains("C")) {
+ // Force org * in case of System, Client or Client/Organization
+ writableOrganizations.add("0");
}
final List<Organization> os = getOrganizationList(role);
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits