Copied to clipboard

Flag this post as spam?

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


  • David Armitage 508 posts 2076 karma points
    Nov 30, 2020 @ 06:14
    David Armitage
    0

    Umbraco 8 USync Enable For Editor Users

    Hi Guys,

    I was just wondering if there is any way to enable permission so editor users can access the usync dashboard.

    We use uSync for some deployment process and one of the jobs of our editors is to run and import following a deployment of the uSync files.

    We dont want to whole settings section to be available to editors so what I am hoping to do is..

    1. Create a custom tree item that links to the uSync dashboard or

    2. Create a custom dashboard section in the content section that links to the uSync dashboard.

    I could do this but the trouble is editors dont have permission to see the uSync dashboard so connecting up the true item or dashboard to the uSync url wont work.

    Any ideas how I can make this available to editors?

    Kind Regards

    David

  • Kevin Jump 2313 posts 14700 karma points MVP 7x c-trib
    Nov 30, 2020 @ 09:00
    Kevin Jump
    100

    HI David,

    I think yo would need to create your own dashboard in the content section and add a 'sync' button. (dashboard tutorial if you need it.)

    I think the controller is restricted to settings, so you will need to create your own UmbracoAuthorizedApiController to perform the command, but you should beable to lift that code directly from the main uSync controller.

    https://github.com/KevinJump/uSync8/blob/v8/8.7-main/uSync8.BackOffice/Controllers/uSyncDashboardApiController.cs#L127

    you don't need to worry about connectionId and hubs and callbacks, they are there to provide the UI feedback via signalR - if you skip them everything will still work, you won't however get the progress bars and icons.

  • David Armitage 508 posts 2076 karma points
    Dec 01, 2020 @ 02:31
    David Armitage
    1

    Hi Kevin,

    Thanks. I went down the path of creating my own custom dashboard as you suggested.

    It wasn't too panful actually. It isn't as flash as the uSync dashboard but it does the job.

    It also allowed be to exclude the export and import settings options which we don't want the editors to use.

    enter image description here

  • David Armitage 508 posts 2076 karma points
    Nov 30, 2020 @ 09:35
    David Armitage
    0

    Hi Kevin,

    Yeah I was hoping that wasn't the case. that was kind of my plan b.

    I think the progress bar is really good now so I wanted to keep that. I might see if it's worth the extra work to try and get all this working. First though is I don't think so.

    I would prefer the client not have editors take care of this job. Sometimes its not our choice though.

    Lets see how it goes.

    Kind Regards

    David

Please Sign in or register to post replies

Write your reply to:

Draft