Hello,
I have the need to get all the users that has a given permission (userappservice , need Pages_Administration_Users permission), from a method that doesn't need this permission ).
Is there anyway to override the permissions of a given method?
Thanks
4 Answer(s)
-
0
hi
Do you want to call the application service in the background job?
Please share your use case in detail.
-
0
I have the appservice 1 that need permission A, that needs to call the appservice 2 that needs permission B. User calling appservice 1 has permission A, but not B :
appservice1.doit(){
var ret = appservice2.dothat(); <- Need permission B
}
-
0
Hi @ignasiclos
It is a bad practice to call one app service from another. Instead, you can create a domain service, move your common code to this domain servicen and use it from appservice1 and appservice2.
-
0
That makes sense. Thank you