But my AppService/DomainService are async. So I should await on something.
Any idea? Thanks
Hi Ismail,
It is more like I need to show data from multiple sites to a host user, so permissions might work well.
I created a Permission that is available in both Site and Host and seems to do the trick :)
Thanks Bilal
Maybe I didn't explain myself correct.
I want to use a Razor For Loop to loop over data just as we do it when using MVC Model/Views. This is similar to the case when you call an MVC Controller Action that returns a View with a Model.
The reason why I need this is because I need to get render form controls dynamically. So I would get a model of all fields to render, then one by one I embed an angular directive corresponding to that field.
I would rather do that in Razor server-side rather than Angular as I read everywhere I shouldn't be doing DOM manipulation through the angular controller.
Let me know if it is clear now, if not I will do more effort to explain.
Thanks Bilal
Thank you.
But I see a lot of use for the SetTenantId(Null) in the Framework code, how come it works? Aren't they checking permissions too?
But how would I solve such an issue? What's the recommendation?
I am getting data from host and tenant, at the same time, I have permissions so that not everyone can access the data.
Thank you Bilal
Hi Ismail
Thano you for your reply.
I'm not getting what you mean when you say cannot check permissions in a switched host and tenant context. An example pls ?
Thanks
Sure. I am sharing the source code.
The code that is not working is commented out, just commented in and comment out the other code to be able to see what's going on.
Regards Bilal
Hello Ismail, Were you able to check this issue?
Thanks
I will try it soon and report back :-)
I will try it soon and report back :-)
Thanks for the hints.
Actually both office 365 and free outlook.com. will that incur more configurations?