2. Remove the original uSync tree from the tree collection
(In a composer that runs after uSync does, we remove the original tree)
[ComposeAfter(typeof(uSyncBackOfficeComposer))]
public class uSyncTreeComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.Trees()?.RemoveTreeController<uSyncTreeController>();
}
}
n.b For permissions etc, to still work its important the tree alias stays as "usync".
I've been testing out a new Umbraco User Group which is only given accesss to this new uSync section. When they login it pops all the below
They can only view the section when I give the user group the Settings section.
Is there a way around it do you know? Just so this user group can only access the Usync section without giving them permission to the Settings section?
I think this might be something we can remove, but to be honest i would want to do some proper testing before just getting rid of it on the controller.
I don't know if you can replace the controller like we have with the tree once above. but i suspect it probibly won't work the same.
uSync Umbraco V10 - moving usync from Settings section to a custom section
Hi Kevin,
Just checking to see if it's possible or if there's a way I can move usync from the Settings section to a custom section which I've created?
Thanks
Hi Jay,
Possible - think it works - not supported however . (because i haven't tested everything).
1. create your own tree that inherits from uSync :
(This example will move the tree to the 'translation' section)
2. Remove the original uSync tree from the tree collection
(In a composer that runs after uSync does, we remove the original tree)
n.b For permissions etc, to still work its important the tree alias stays as "usync".
Oh Thanks Kevin, I'll try it out
Hey Kevin, just to let you know that it works. Thanks for the help
Hey Kevin,
I've been testing out a new Umbraco User Group which is only given accesss to this new uSync section. When they login it pops all the below
They can only view the section when I give the user group the Settings section.
Is there a way around it do you know? Just so this user group can only access the Usync section without giving them permission to the Settings section?
Thanks
Hi,
Yeah at the moment i am not sure, because the ApiController has the SettingsAccess security on it.
( https://github.com/KevinJump/uSync/blob/v11/dev/uSync.BackOffice/Controllers/uSyncDashboardApiController.cs#L36-L42 )
I think this might be something we can remove, but to be honest i would want to do some proper testing before just getting rid of it on the controller.
I don't know if you can replace the controller like we have with the tree once above. but i suspect it probibly won't work the same.
Hi,
Done some tests, i think we can remove that authorization policy (as long as we keep the tree one).
We have a nightly build for v10 - that has this in if you want to try it and see if it works for you:
https://dev.azure.com/jumoo/Public/_artifacts/feed/nightly/NuGet/uSync/overview/10.3.4-build.20230315.1
is working on a reply...