0
safak.bal created
- ABP Framework version: v4.0.0
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Steps to reproduce the issue:
After defining new permission, the permission is granted to the host admin user. Bu t i have 3 tenants and the permission is not granted to these tenant's admin users. When these permissions are granted and why new permission definition is not granted to the tenant admins too.
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
5 Answer(s)
-
0
Permission Definition: queryManagement.AddChild(QueryPermissions.QueryManagement_ExportImport, LocalizationHelper.L("Permission:QueryManagement:ExportImport"));
follow this steps:
- Add one or more tenants
- Add the permission definition
- Run DBMigrator
- Check the AbpPermissionGrants table and see only the Null TenantId is added and no tenant admin row is added
But i tested this; after adding the permission , if you add the tenant after the permission definition then everyting works fine
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
Can you share the source code of your
XXXDbMigrationService?It should contain such code like below.
foreach (var tenant in tenants) { using (_currentTenant.Change(tenant.Id)) { await SeedDataAsync(tenant); } }Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)