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..
Create a custom tree item that links to the uSync dashboard or
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?
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.
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.
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.
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..
Create a custom tree item that links to the uSync dashboard or
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
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.
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.
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
is working on a reply...