Hi,
I'm using Kentico 12 (Portal), and try to implement a mass action for our admin area, sadly there is no exemple on how to implement it. The documentation stops at "use redirect or openmodal" which show nothing on how you could implement either of these and what the configuration would look like.
So as the mass delete is implementing this, I copied the code of the mass delete (creating a new file extending CMSAdministrationPage
).
Sadly this page seems a bit faulted in production somehow, on staging global admin account works fine but when trying to use it in production (global admin as well) I get an error saying:
Access denied
You are not authorized to view this page. Only global administrator is authorized to view this page
Funny enough, this error message happens to the Global administrator account, other accounts cannot even reach it and just blankly crash with a message indicating the website refused to connect
.
I searched a bit into the code to find out that the CMSAdministrationPage
is taking the SiteId
property is reading from query parameters (instead of SiteContext.CurrentSiteID
???)... overriding that property to give the proper one give me a different error (invalid parameter
).
Compared the navigation between the working staging environment and prod and the navigation does the exact same thing {domainname}/Custom/Modules/Applications/UI/Actions/Applications_MassUpdateStatusAction.aspx?parameters=cb1a9cec-ceca-4d35-9d3d-ef19b2065e5f&hash=d80a6041b8c710c767fcbfba0c4142a4d1b1180b5993686c72c7ae9dc7e4d27f
Parameters are here etc... so not sure whats going on there, I wonder if because the page is under /Custom/...
and it is blocked in prod or something.
Did you face this issue before, the documentation around mass actions is scarce to say the least.
Or can you provide a sample for a modal to be implemented in the admin zone or indicated what need to be extended, maybe it will be simpler if there is no redirection.