Skip to content

How to Dynamic Add/Update Permissions and Refresh Cache in ABP #21779

Answered by maliming
rainmakerho asked this question in Q&A
Discussion options

You must be logged in to vote

hi

The code of my commit.

https://abp.io/support/questions/8410/Unable-to-save-the-permission-after-creating-it-in-an-App-Service?CurrentPage=1#answer-3a16a78d-b177-156f-8852-250df54ae94c

diff --git a/src/AbpSolution1.Application/Books/BookAppService.cs b/src/AbpSolution1.Application/Books/BookAppService.cs
index 919613d..146f3dd 100644
--- a/src/AbpSolution1.Application/Books/BookAppService.cs
+++ b/src/AbpSolution1.Application/Books/BookAppService.cs
@@ -27,15 +27,11 @@ public class BookAppService :
         CreateUpdateBookDto>, //Used to create/update a book
     IBookAppService //implement the IBookAppService
 {
-    private readonly IPermissionDefinitionManager _permissionDefinition…

Replies: 1 comment 3 replies

Comment options

@rainmakerho
Comment options

@rainmakerho
Comment options

@maliming
Comment options

maliming Jan 2, 2025
Collaborator

Answer selected by rainmakerho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants