So overall I’m still trying to set up my settings page for my plugin. This is the next issue I’ve come across in this painful process, but it seems different enough to warrent a new thread, and also potential constitutes a bug.
When visiting the Settings page for my plugin in the CMS I’m getting a 401 error, so I’m trying to register some permissions in order to enable them under Users & Permissions.
I have set up the routes added the following to src/index.js. This has added the checkboxes for Access Settings and Update Settings to Users & Permissions but ONLY under Public and not Authenticated. Any ideas where to go from here?
console.log("bootstrap being called")
// console.log(strapi)
try {
const actions = [
{
section: 'plugins',
displayName: 'Access Settings',
uid: 'settings.get',
pluginName: 'notifications-plugin',
},
{
section: 'plugins',
displayName: 'Update Settings',
uid: 'settings.update',
pluginName: 'notifications-plugin',
},
];
return strapi.admin.services.permission.actionProvider.registerMany(actions);
}catch (error) {
console.error("Error registering permissions:", error);
}
},```
<i>This topic has been created from a Discord post (1285604080797876286) to give it more visibility.
It will be on Read-Only mode here.
<a href="https://discord.com/channels/811989166782021633/1285604080797876286/1285604080797876286">Join the conversation on Discord</a></i>