Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045351
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Copy Retail Storemajorhave not tried2020-11-02 08:542020-11-16 06:30
ReporterrafarodaView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045351: Copy Terminal and Unlink Physical Device do wrong Organization evaluation

DescriptionCopy Terminal and Unlink Physical Device do wrong Organization evaluation
* If I'm an user with Role assigned to France summary organization
* I'm not able to do Copy Terminal nor Unlink Physical Device for the terminal of 1 store
Steps To Reproduce* Create a role that has Organization _= France (country level organization)
* With that user and role go to Touchpoint Type: do a copy terminal of a terminal of a store: you get an error
* Same if you try to do Unlink Physical Device
TagsCopyRetailStore, NOR
Attached Filespng file icon Screenshot from 2020-11-02 08-46-51.png [^] (91,677 bytes) 2020-11-02 08:55


png file icon 73cb106b-874d-4f02-8685-be012ef7bc4f.png [^] (43,046 bytes) 2020-11-02 08:55


diff file icon unlinkDevice.diff [^] (4,096 bytes) 2020-11-14 13:37 [Show Content]
diff file icon copyStore.diff [^] (2,651 bytes) 2020-11-14 13:38 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0124091)
marvintm (manager)
2020-11-02 11:25
edited on: 2020-11-02 11:25

As far as I can see that problem seems to happen because your current role doesn't have access to the organisation in which the terminal is defined on, right?

So, your current organisation doesn't actually matter I think. What matters is the organisations your current role has access to. Can you confirm whether your current role has access to that particular store?

(0124208)
rafaroda (developer)
2020-11-06 10:05

Antonio: "seems to happen because your current role doesn't have access to the organisation in which the terminal is defined on"
* The current role I'm trying to use has organization "Norauto France" since I am the Norauto France IT guy
* We can't expect to put in Role window > Organizaiton tab each time a store opens a new record.
* I understand that being in Norauto France organization I'm able to do actions on all the stores below (all the French stores)
(0124372)
AugustoMauch (administrator)
2020-11-14 13:39

Patch proposals attached.

In any case I think this is a configuration issue. If a given role cannot manually create a new terminal from scratch in a given organization, I don't see why it should be able to do it using the copy terminal process
(0124373)
rafaroda (developer)
2020-11-14 16:16

Extra comment by Augusto: "that's how the organization access model works in Openbravo. If a role includes an organization in its Org Access tab, it gets write permissions on records referencing that organization, and automatic read access to all the organizations in its natural tree. If a role wants write permissions to records belonging to an organization, it must explicitly include that organization in its Org Access tab. " http://wiki.openbravo.com/wiki/Role [^]
(0124377)
marvintm (manager)
2020-11-16 06:30

As discussed internally, the OB Org/Security model currently works in this way: you need to have explicit org access in your role to be able to modify records in specific organisations.

- Issue History
Date Modified Username Field Change
2020-11-02 08:54 rafaroda New Issue
2020-11-02 08:54 rafaroda Assigned To => Retail
2020-11-02 08:54 rafaroda Resolution time => 1605567600
2020-11-02 08:54 rafaroda Triggers an Emergency Pack => No
2020-11-02 08:55 rafaroda Tag Attached: NOR
2020-11-02 08:55 rafaroda Tag Attached: CopyRetailStore
2020-11-02 08:55 rafaroda File Added: Screenshot from 2020-11-02 08-46-51.png
2020-11-02 08:55 rafaroda File Added: 73cb106b-874d-4f02-8685-be012ef7bc4f.png
2020-11-02 11:25 marvintm Note Added: 0124091
2020-11-02 11:25 marvintm Assigned To Retail => rafaroda
2020-11-02 11:25 marvintm Status new => feedback
2020-11-02 11:25 marvintm Note Edited: 0124091 View Revisions
2020-11-06 10:05 rafaroda Note Added: 0124208
2020-11-13 12:56 rafaroda Assigned To rafaroda => marvintm
2020-11-13 12:56 rafaroda Status feedback => new
2020-11-14 13:37 AugustoMauch File Added: unlinkDevice.diff
2020-11-14 13:38 AugustoMauch File Added: copyStore.diff
2020-11-14 13:39 AugustoMauch Note Added: 0124372
2020-11-14 16:16 rafaroda Note Added: 0124373
2020-11-16 06:30 marvintm Review Assigned To => marvintm
2020-11-16 06:30 marvintm Note Added: 0124377
2020-11-16 06:30 marvintm Status new => closed
2020-11-16 06:30 marvintm Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker