Permissions for data type / dataTypeResource.getPreValues
Hi,
I've created a plugin to show prevalues from a data type on a dashboard. It's all working fine for me (admin), but when an editor tries to view it they get bumped back to the login screen with a 401 error in console (nothing in logs).
If I give the editors group access to the developer section there is no problem, but I don't really want to give all the editors access to the dev section.
I've tried adding
<access>
<grant>editor</grant>
</access>
To the dashboard.config file, but that doesn't seem to make a difference.
My plugin controller is:
dataTypeResource.getPreValues("Umbraco.DropDown.Flexible", id).then(function (response) {
angular.forEach(response[1].value, function (value, key) {
// DO STUFF
});
});
Permissions for data type / dataTypeResource.getPreValues
Hi,
I've created a plugin to show prevalues from a data type on a dashboard. It's all working fine for me (admin), but when an editor tries to view it they get bumped back to the login screen with a 401 error in console (nothing in logs).
If I give the editors group access to the developer section there is no problem, but I don't really want to give all the editors access to the dev section.
I've tried adding
To the dashboard.config file, but that doesn't seem to make a difference.
My plugin controller is:
Any ideas on how to do this?
I found the answer here https://our.umbraco.com/packages/backoffice-extensions/umbraco-forms-rich-text/umbraco-forms-rich-text-help/92381-user-is-logged-outwhen-inserting-richtext
I tweaked the answer to limit the access to my required user groups.
is working on a reply...