Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ANZ 6.5 Jquery for Organizations, Roles and Users #6883


User avatar
0
murphymj5209 created

I have a implementation for Organizations, Roles and Users that I am not doing correctly. I would like to say I have review many time your documentation on ANZ and AspNetBoilerPlate on Organizations, roles and users and feel that I am implementing what your documents describe.

My example is with ANZ 6.5 Jquery multitenant. I have made 2 tenats and 2 users each for this proof of concept beginning project. I then created the permissions for Users which has Tenant1&2User2 as members to have access to only Dashboard. When i log in as Tenant1 or 2User2, i do get the dashboard.

I then made the role UpdateInstitute and added Dashboard and a table I created with the PowerTools; its under the Administration Menu and I added the users Tenant1&2User1. When I use the Administration for the tenant it shows that table in the Administration Menu, as i expected. I then create the OrganizationUnit for Student, which has Users role, and UpdateInstitute which has UpdateInstitute role.

For the Tenant1&2User1 I expected to see the menu items Administration --> tblProgramInformation and Users, but do not. Please let me know what i am doing incorrectly for this scenario. I use the Tenant Login in the Host Admin account and login manually and making sure that the Tenant is Tenant1; same results.


12 Answer(s)
  • User Avatar
    0
    murphymj5209 created

    I may of finally found my answer https://support.aspnetzero.com/QA/Questions/6278. i will let you know if i still need help. thanks.

  • User Avatar
    0
    murphymj5209 created

    I did some more research and with this ope item, i think, i am asking the question about why the Administration menu is not available with the table versus what i was side-tracked on: how to program the usage of the table for the application.

    so the above support ticket, along with many others, has not resolved my question / problem. thanks for any help.

  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, do you meant the following?

    when assigining user A to organization unit X (which has role M and the role M contains some permissions), user A does not have the permission grantes by role M?

  • User Avatar
    0
    ryancyq created
    Support Team

    also, ANZ 6.5 uses Abp 4.1 https://github.com/aspnetzero/aspnet-zero-core/releases/tag/v6.5.0

    and organization unit roles are implemented in Abp 4.2 https://github.com/aspnetboilerplate/aspnetboilerplate/releases/tag/v4.2.0

    did you upgrade only abp packages and not ANZ project?

  • User Avatar
    0
    murphymj5209 created

    To your question: 'when assigining user A to organization unit X (which has role M and the role M contains some permissions), user A does not have the permission grantes by role M?'

    Yes, I think that is what I am saying, given what i have read and my screen shots.

    I have not update anything for my ANZ project; I have been learing about Git, ANZ and the many different products on-my-own; so its taken me about 3 months to just get this far, which i am ok with because i am working part-time on this project for a charity organization; hence 1 person development team(sympathy accepted).

    I feel I can update the Abp to the current, 4.5 @ https://github.com/aspnetboilerplate/aspnetboilerplate/releases/tag/v4.5.0 if this is what you recommend.

    I think I understand Git enough to do the update OK. The ANZ, I assume is done in a simular way using the current master: https://github.com/aspnetzero/aspnet-zero-core/tree/master.

    Let me know if this is what you recommend. Thanks ahead of time, tips and sympathy are greatly appreciated.

  • User Avatar
    0
    murphymj5209 created

    FYI, i wanted to mention that I have done alot of server migrations for applications; large enterprise apps. So i am famuliar with app migrations with table and code changes. Lastly, i have not done alot of actual application programming that cannot be redone. i have not done the upgrade before doing the code only because it did not seem necessary.

    thanks for your help.

  • User Avatar
    0
    ryancyq created
    Support Team

    I think I understand Git enough to do the update OK. The ANZ, I assume is done in a simular way using the current master: https://github.com/aspnetzero/aspnet-zero-core/tree/master.

    ANZ project upgrade isn't sole relying on the git repository.

    You should download new version of ANZ with the same configuration (e.g MVC + jQuery or Asp Net Core + Angular , or etc ...) and replace the content in your current ANZ project.

    See https://support.aspnetzero.com/QA/Questions/6887#answer-caab10c6-3454-dec9-8f8c-39ed571dae4e

  • User Avatar
    0
    ryancyq created
    Support Team

    Regarding the permission bug, it was caused by user/role permission cache not being invalidated when the organization unit assignment changes for user/role.

    I have created an issue at https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4476

  • User Avatar
    0
    murphymj5209 created

    Thanks for your help; 'but' i went to the links you suggested and found a partial answer 'thomas-parrish commented on Mar 20, 2018 There are several posts describing solutions for this. We keep a mainline branch called "framework" that is used to upgrade to new releases (we use git.) Every time a new release comes out, we switch to the framework branch, replace the source code with the newly downloaded source files, and then commit the "upgrade" changes to the framework branch.'

    I went to the https://github.com/aspnetzero/aspnet-zero-core and looked for a framework branch with i did not find. I also went to https://github.com/aspnetboilerplate/aspnetboilerplate, again look for a framework branch, i also did not find.

    Please supply the url i need to incorporate so i can download the current git project.

  • User Avatar
    0
    murphymj5209 created

    I have re-read you answer 'ANZ project upgrade isn't sole relying on the git repository. You should download new version of ANZ with the same configuration (e.g MVC + jQuery or Asp Net Core + Angular , or etc ...) and replace the content in your current ANZ project. See https://support.aspnetzero.com/QA/Questions/6887#answer-caab10c6-3454-dec9-8f8c-39ed571dae4e'

    To me you are suggesting I go to the ANZ download dir and use the https://www.aspnetzero.com/Download, download a demo app, then incorporate that into my already downloaded code from the 01-14-2019 date.

    Please let me know if this is what you are saying. thanks

  • User Avatar
    0
    murphymj5209 created

    i wanted to apologize for not reading your previos replies; i can get my code at the supplied url:https://github.com/aspnetzero/aspnet-zero-core/releases/tag/v6.5.0

    thanks.

  • User Avatar
    0
    ryancyq created
    Support Team

    not sure if you had gone through the conversation in details.

    basically you can't directly dowload the source code from github repo and upgrade your local copy straight away.

    www.aspnetzero.com/download only pack certain files/folders into the downloaded zip file depends on the selected configurations

    e.g.

    1. mvc + angular
    2. mvc + angular (single solution)

    these two have substaintial difference in terms of folder structure and start up code.

    please read upgrade guide https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-185281191

    step by step https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-186843738