I am working on creating a Confluence Plugin using Atlassian SDK. The plugin should have the ability to hide the confluence sections like themes, colorscheme from Look and Feel Section for non-admins and they shouldn’t be hidden for admins. I need to achieve it with my custom confluence plugin only without using Scriptrunner UI fragments. Can anyone help me what would be the right approach to achieve this functionality?
To implement something that is not just hiding the tabs via CSS / JS you could look at Servlet Filters. As pattern add the urls you don’t want like /spaces/choosetheme.action.
Off-topic: Personally, i wouldn’t recommend to block this. This sounds like an internal communication/ intranet requirement. Sometimes there are reasons for such things. That’s why i would recommend figure out how to quickly find which spaces have customisations applied and then reach out to them.
Thank you for your response. I have created a confluence plugin which is blocking some urls like /spaces/choosetheme.action using servlet filters and to hide “Themes” on UI, I am using Javascript. But this approach is throwing some delay on UI while loading since we are using Javascript to hide UI web items. Can you please suggest if we have any other alternate way to achieve this same functionality. It would be very helpful.