Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with permissionStrings API #133

Open
joiskash opened this issue Sep 19, 2023 · 1 comment
Open

Issue with permissionStrings API #133

joiskash opened this issue Sep 19, 2023 · 1 comment

Comments

@joiskash
Copy link

joiskash commented Sep 19, 2023

I am using tag 3.15.1 . I have setup a barebones OpenLMIS system on my PC with the production spring_active_profile. Here are the issues I face which I think are most likely related to Permissions and Roles.

  1. There is no way to setup trade items through the reference UI
  2. You cannot set supported programs through reference UI for facilities. You have to use the API.
  3. I was able to create Geographical Zones and Levels through postman and create facilities using the UI but had to again use postman APIs to create supervisory nodes. There is no create / add supervisory node on UI.
  4. I added a new role for fulfillment and supervisory and added users with these roles. When I login with the users I see that there is no "Stock Management" Tab. On investigating the permissionStrings, I notice that some of the stock management permissions are missing such as "STOCK_INVENTORIES_EDIT". Even though all the permission and roles are set for the user.

I am working for IPRD Solutions and we want to demo a working implementation to integrate OpenLMIS with our POC android FHIR native app. We are more than happy to contribute and fix issues to get the reference app in a better state. Can someone point me to which service I should be debugging to fix this?

@joiskash
Copy link
Author

We were able to manually insert the permissionString in the table referencedata.right_assignments. This resulted in displaying the UI workflows for StockManagement . Everything else worked as expected. Seems to be a simple bug fix. The insert operation into this data base is buggy . I guess this has to work correctly when you assign rights to a role and assign the role to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant