I noticed (in Blazor) that the Administration side menu is missing for logged in tenant but I can still access the items, so not permission issue. I created a issue for this with more details https://support.abp.io/QA/Questions/1713/Administration-menu-missing-after-update-to-440
Here are two Blazorise GitHub issues that throw this error
Unhandled exception rendering component: Could not find 'blazorise.tooltip.updateContent'
It gets fixed after re-running the bundling tool
Allthought the bunding tool now leves the following warning "Unable to minify the file: AuthenticationService.js. Adding file to the bundle without minification."
Ok I have been looking at this and mabe creating a role and asigning it to the user when he is created is the correct way about doing this.
Here is a working sample for others to follow.
Its still unclear if I should be using IDistributedEventHandler<EntityCreatedEventData<IdentityUser>> or IDistributedEventHandler<EntityCreatedEto<UserEto>>. Seemy question here.
public class RegisteredUserHandler : IDistributedEventHandler<EntityCreatedEventData<IdentityUser>>, ITransientDependency
    {
        private readonly IPermissionManager permissionManager;
        private readonly IdentityUserManager identityUserManager;
        public RegisteredUserHandler(IPermissionManager permissionManager,IdentityUserManager identityUserManager)
        {
            this.permissionManager = permissionManager;
            this.identityUserManager = identityUserManager;
        }
        [UnitOfWork]
        public async Task HandleEventAsync(EntityCreatedEventData<IdentityUser> eventData)
        {            
            // Add the permission to the role
            await permissionManager.SetForRoleAsync("OrdinaryClientRole", "MyPermission.Client", true);
            
            // Add the user to the role. 
            await identityUserManager.AddToRoleAsync(eventData.Entity, "OrdinaryClientRole");
        }
    }`
I will seed the role and add the permissions in one go like shown here.
You are misunderstanding this.
I´m trying to have different menu for a user that is not a Tenant and not Host.
I´m the host and Tenants can register with my system and add content that ordinary users can enjoy (for payment to me that I then monthly dish out to Tentans). The ordinary users need to be able to view collection of content from all the tenants in the system.
Did that explain it?
Hi again!
I did a MVP and settled on a multi-tenancy option but I didn't go into every detail and need some help with this comment
Clients can be normal IdentityUser (AbpUser). They can access products without any issues.
What I need to know is how do I separate the Client (ordinary user) from Tenant/Host? How can I show clients their menu items that are totally different from the Tentan ones? I have been having this discussion on github but remembered that I had asked this question and gotten this comment and now beleve the question belongs here.
This is (I hope) the last puzzle to get my Beta out the door so I hope you can point me in the right direction with this.
p.s I have a separate Identity Servar and have added the Account source module so I can modify it.
Ok thanks to extra pair of eyes from Liangshiwei we spotted nuget package that needed to be replaced by source.
I reccomend that this documentation
"In this case, you typically add the source code of the module to your solution and replace package references by local project references. ABP CLI automates this process for you."
should be updated to
"In this case, you typically add the source code of the module to your solution and replace every package reference in the solution with its corresponding local project references. ABP CLI automates this process for you."
Also this part "ABP CLI automates this process for you." is not correct... the CLI only adds nuget package to (in my case) Volo.Abp.Account.* and adds some properties. It does not add the references to the source code. This part of the CLI could be much much more powerful and would probably save lot of wasted time.
Btw I created a PR to the docs
I whent over this 2x to day and re-read everything I could get my hands (and tried various other things just for sport) with the same result.
I sent you email and would like assistance with this, thank you.
Sorry stil morning here.. wasn´t going to close this so reopening it!
Thank you for the answer but I should maybe have skipped the part of getting the source and running the command because I have the exact same problem with clicking the "Replace packages with source code" button.
So my questions are
Sorry if I was unclear in my previous question.
Ok it works now. The email was checked with permissions but some combination of loging into the main admin and checking the tenant user loggin of and into the tenant it self and restart made this all click. I really tried this all yesterday as well... strange.... but oh well...closing this
 
                                