Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • M 39 posts 261 karma points
    Mar 11, 2020 @ 14:29
    M
    0

    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
        });
    });   
    

    Any ideas on how to do this?

  • M 39 posts 261 karma points
    Mar 16, 2020 @ 15:39
Please Sign in or register to post replies

Write your reply to:

Draft