c# - DNN TabController.GetPortalTabs returns different results when initial request comes from a browser or a standalone program -


i'm creating api access content dnn externally based on dnnapicontroller. 1 of endpoints supposed return pages user has access to. list of pages populated dotnetnuke.entities.tabs.tabcontroller.getportaltabs(portalsettings.portalid, -1, true, string.empty, true, false, true, true, false)

this works fine when request originates browser or postman client, when callers standalone application (in case a test wpf application) results wrong.

when called browser/postman, 10 tabs returned 5 when called wpf.

any ideas whats going on?

my guess inside getportaltabs function overload doing processing based on current user: usercontroller.instance.getcurrentuserinfo(). method looking @ httpcontext current user. uses current user filter out tabs user has no permission to. if calling external service, httpcontext.current null. therefore tabs may filtered tabs available user permission.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -