- What is your product version? AspNetZero 7.0.0
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .Net Core 2.2
When tenant is registered its been assigned to specific edition and based on that admin role has all granted feature's permissions automatically granted. Issue: When tenant is registered and logged in and if GetRoleForEdit is called it only give specific granted permissions(please see response after_registration_response.json) but after clearing cache(as host admin) and then call same api it gives all proper and correct granted permissions(please see after_registration_clearing_all_cache_response.json).
I already tried clearing cache after registration but its still gives same response. Not sure, what is wrong, any help would be appreciated. Thanks!
after_registration_response.json
{
"result": {
"role": {
"id": 1091,
"displayName": "Admin",
"isDefault": false
},
"permissions": [
"..."
],
"grantedPermissionNames": [
"Pages",
"Pages.Administration",
"Pages.Administration.Roles",
"Pages.Administration.Roles.Create",
"Pages.Administration.Roles.Edit",
"Pages.Administration.Roles.Delete",
"Pages.Administration.Users",
"Pages.Administration.Users.Create",
"Pages.Administration.Users.Edit",
"Pages.Administration.Users.Delete",
"Pages.Administration.Users.ChangePermissions"
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
after_registration_clearing_all_cache_response.json
{
"result": {
"role": {
"id": 1091,
"displayName": "Admin",
"isDefault": false
},
"permissions": [
"..."
],
"grantedPermissionNames": [
"Pages",
"Pages.Administration",
"Pages.Administration.Roles",
"Pages.Administration.Roles.Create",
"Pages.Administration.Roles.Edit",
"Pages.Administration.Roles.Delete",
"Pages.Administration.Users",
"Pages.Administration.Users.Create",
"Pages.Administration.Users.Edit",
"Pages.Administration.Users.Delete",
"Pages.Administration.Users.ChangePermissions",
"Pages.Administration.AccountSetup",
"Pages.Administration.AccountSetup.GeneralSettings",
"Pages.Administration.AccountSetup.GLFormats",
"Pages.Administration.AccountSetup.GLFormats.Create",
"Pages.Administration.AccountSetup.GLFormats.Edit",
"Pages.Administration.AccountSetup.GLFormats.Delete",
"Pages.Administration.AccountSetup.RequireDocuments",
"Pages.Administration.AccountSetup.RequireDocuments.Create",
"Pages.Administration.AccountSetup.RequireDocuments.Edit",
"Pages.Administration.AccountSetup.RequireDocuments.Delete",
"Pages.Administration.AccountSetup.ReviewApproverGroups",
"Pages.Administration.AccountSetup.ReviewApproverGroups.Create",
"Pages.Administration.AccountSetup.ReviewApproverGroups.Edit",
"Pages.Administration.AccountSetup.ReviewApproverGroups.Delete",
"Pages.Administration.Tenant.Settings",
"Pages.Administration.Tenant.Settings.General",
"Pages.Administration.Tenant.Settings.InvoiceBillingInfo",
"Pages.Administration.Tenant.SubscriptionManagement",
"Pages.Tenant.Dashboard",
"Pages.Tenant.Control",
"Pages.Tenant.Control.Fund",
"Pages.Tenant.Control.Fund.Create",
"Pages.Tenant.Control.Fund.Edit",
"Pages.Tenant.Control.Fund.Delete",
"Pages.Tenant.Control.Fund.View",
"Pages.Tenant.Control.ServiceTracking",
"Pages.Tenant.Control.ServiceTracking.Create",
"Pages.Tenant.Control.ServiceTracking.Edit",
"Pages.Tenant.Control.ServiceTracking.Delete",
"Pages.Tenant.Control.ServiceTracking.View",
"Pages.Tenant.Control.ProgramTracking",
"Pages.Tenant.Control.ProgramTracking.Create",
"Pages.Tenant.Control.ProgramTracking.Edit",
"Pages.Tenant.Control.ProgramTracking.Delete",
"Pages.Tenant.Control.ProgramTracking.View",
"Pages.Tenant.Control.GoalTracking",
"Pages.Tenant.Control.GoalTracking.Create",
"Pages.Tenant.Control.GoalTracking.Edit",
"Pages.Tenant.Control.GoalTracking.Delete",
"Pages.Tenant.Control.GoalTracking.View",
"Pages.Tenant.Contract",
"Pages.Tenant.Contract.Contracts",
"Pages.Tenant.Contract.Contracts.Create",
"Pages.Tenant.Contract.Contracts.Edit",
"Pages.Tenant.Contract.Contracts.Delete",
"Pages.Tenant.Contract.ContractorList",
"Pages.Tenant.Contract.ContractorList.Invite",
"Pages.Tenant.Contract.ContractDocuments",
"Pages.Tenant.Contract.ContractDocuments.Create",
"Pages.Tenant.Contract.ContractDocuments.Edit",
"Pages.Tenant.Contract.ContractDocuments.Delete",
"Pages.Tenant.Contract.ContractDocuments.View",
"Pages.Tenant.Approval",
"Pages.Tenant.Approval.ReviewInvoice",
"Pages.Tenant.Approval.ApproveInvoice",
"Pages.Tenant.Approval.AuthorizeService",
"Pages.Tenant.Approval.AuthorizeService.Create",
"Pages.Tenant.Approval.AuthorizeService.Edit",
"Pages.Tenant.Approval.AuthorizeService.Delete",
"Pages.Tenant.Approval.AuthorizeService.View",
"Pages.Tenant.Approval.AuthorizeService.Process",
"Pages.Tenant.Invoicing",
"Pages.Tenant.Invoicing.ReportExpensesCharges",
"Pages.Tenant.Invoicing.ChargeHistory",
"Pages.Tenant.Invoicing.InvoiceDocuments",
"Pages.Tenant.Invoicing.InvoiceDocuments.Create",
"Pages.Tenant.Invoicing.InvoiceDocuments.Edit",
"Pages.Tenant.Invoicing.InvoiceDocuments.Delete",
"Pages.Tenant.Invoicing.InvoiceDocuments.View",
"Pages.Tenant.Invoicing.InvoiceDocuments.Process",
"Pages.Tenant.Invoicing.Invoice",
"Pages.Tenant.Invoicing.Invoice.Create",
"Pages.Tenant.Invoicing.Invoice.Edit",
"Pages.Tenant.Invoicing.Invoice.Delete",
"Pages.Tenant.Invoicing.Invoice.View",
"Pages.Tenant.Invoicing.RequestAuthorization",
"Pages.Tenant.Invoicing.RequestAuthorization.Create",
"Pages.Tenant.Invoicing.RequestAuthorization.Edit",
"Pages.Tenant.Invoicing.RequestAuthorization.Delete",
"Pages.Tenant.Invoicing.RequestAuthorization.View",
"Pages.Tenant.Reports",
"Pages.Tenant.Reports.Contracts"
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
3 Answer(s)
-
0
Hi @demo.solaru
I could not reproduce it. Can you please share a project that contains that problem?
-
0
Hi @musa.demir,
Becuase of codebase security I won't be able to share the content but we can connect over zoom call or team viewer.
-
0
Hi @demo.solaru
Can you please try to reproduce the problem in a clean project? If you can reproduce it,you can share it with us. It will be better for us to investigate the problem. If you can not, we can set a call.