Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0036379 | Openbravo ERP | C. Security | public | 2017-06-30 13:32 | 2017-09-21 16:49 |
|
Reporter | jonibc | |
Assigned To | markmm82 | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q4 | |
Merge Request Status | |
Review Assigned To | aferraz |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0036379: Org Access is not added for inactive orgs creating new Role |
Description | When a new Role (Automatic) is created, all org access are given for the existing organizations, but not for those inactive. |
Steps To Reproduce | Create a new Organization and uncheck active flag (Create an Organization using OBProvider).
Add an automatic Role, check that Org Access for the inactive organization has not been created.
If the organization is set as Active, it is needed to create the Org Access manually. |
Proposed Solution | Include also inactive organizations in RoleEventHandler. Change OBCriteria to allow filter over inactive organizations. (By default OBCriteria applies filter active='Y') |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0030057 | | closed | aferraz | Org Access added automatically to all roles |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-06-30 13:32 | jonibc | New Issue | |
2017-06-30 13:32 | jonibc | Assigned To | => platform |
2017-06-30 13:32 | jonibc | Modules | => Core |
2017-06-30 13:32 | jonibc | Resolution time | => 1500069600 |
2017-06-30 13:32 | jonibc | Triggers an Emergency Pack | => No |
2017-06-30 13:32 | jonibc | Issue Monitored: jonibc | |
2017-06-30 13:35 | jonibc | Relationship added | related to 0030057 |
2017-06-30 13:51 | jonibc | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=15446#r15446 |
2017-06-30 15:01 | caristu | Assigned To | platform => Triage Finance |
2017-06-30 15:01 | caristu | Category | A. Platform => C. Security |
2017-07-03 09:35 | vmromanos | Status | new => scheduled |
2017-07-03 09:35 | vmromanos | Assigned To | Triage Finance => collazoandy4 |
2017-07-03 09:36 | vmromanos | Severity | major => minor |
2017-07-07 18:49 | markmm82 | Assigned To | collazoandy4 => markmm82 |
2017-07-07 20:11 | markmm82 | Note Added: 0097960 | |
2017-07-10 16:36 | hgbot | Checkin | |
2017-07-10 16:36 | hgbot | Note Added: 0097985 | |
2017-07-10 16:36 | hgbot | Status | scheduled => resolved |
2017-07-10 16:36 | hgbot | Resolution | open => fixed |
2017-07-10 16:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b467bc3ae8c4e1b42a665fe9c1f4ef02c5e1c494 [^] |
2017-07-10 16:36 | aferraz | Review Assigned To | => aferraz |
2017-07-10 16:36 | aferraz | Note Added: 0097986 | |
2017-07-10 16:36 | aferraz | Status | resolved => closed |
2017-07-10 16:36 | aferraz | Fixed in Version | => 3.0PR17Q4 |
2017-09-21 16:49 | hudsonbot | Checkin | |
2017-09-21 16:49 | hudsonbot | Note Added: 0099263 | |
Notes |
|
|
Test Plan:
As Group Admin
1. Go to Organization window and set F&B España - Región Sur inactive (Active flag = false)
2. Go to Role windows and create a new role:
Client = F&B International Group
Organization = *
Name = RoleWithClient+OrgAccess
User Level = Client+Organization
Save.
Notice after save 8 new entries has been created in Org Access tab. You will find also F&B España - Región Sur although it is inactive.
3. Go to Role windows and create a new role:
Client = F&B International Group
Organization = *
Name = RoleWithOrgAccess
User Level = Organization
Save.
Notice after save 8 new entries has been created in Org Access tab. You will find also F&B España - Región Sur although it is inactive.
4. Go to Role windows and create a new role:
Client = F&B International Group
Organization = *
Name = RoleWithClientAccess
User Level = Client
Save.
Notice after save only one entry is created for * Organization in the Org Acces tab. |
|
|
(0097985)
|
hgbot
|
2017-07-10 16:36
|
|
Repository: erp/devel/pi
Changeset: b467bc3ae8c4e1b42a665fe9c1f4ef02c5e1c494
Author: Mark <markmm82 <at> gmail.com>
Date: Fri Jul 07 13:46:36 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/b467bc3ae8c4e1b42a665fe9c1f4ef02c5e1c494 [^]
Fixes issue 36379: Org Access is not added for inactive orgs creating new Role
When a new Role was created, all org access are given for the existing organizations,
but not for those inactive.
It was caused because OBCriteria applies filter active='Y' by default.
To fix it, criteria is set to not filter by Active organizations, this way it also takes
into account those inactive organizations.
---
M src/org/openbravo/event/RoleEventHandler.java
---
|
|
|
|
|
|
|
|