Limit type of objects synchronized and use of synchronize all button

Tomaso Pye asked on October 13, 2015 04:43

I know I can choose what I am synchronizing (content, files, objects, data) in the Settings app. And I know in permissions I can limit the categories that a user can synchronize (data, pages, objects).

However, due to a human problem in production where everything was synchronized from Staging, I am looking for a way to either: 1) be more specific in the types of objects tracked (e.g. no roles, no users) in Settings or 2) restrict use of the synchronize all/synchronize subtree in the Staging application.

I figure that for 2, I can modify the ascx for the staging application and just disable/remove the synchronize all/subtree buttons, but I do not know if this would cause any issues.

For 1, I will probably need to write custom code to allow for it, which I am not very interested in doing.

Any thoughts or guidance from the community?

Thank you very much in advance!

Correct Answer

Brenden Kehren answered on October 13, 2015 04:59

You could very easily limit access to those buttons as you suggested, in fact, that would be my first choice in this situation.

Regarding limiting which items you have access to sync, there isn't really anything OOTB other than what you already suggested.

I know you didn't want to write any custom code but you could take a look at the global event handlers for staging and simply perform some checking for users in a specific role or roles and simply stop the sync. My guess is you'd write 30-60 lines of code, if that, and gain a huge amount of customization. You could even make it generic and have it look to see if the user is part of a role you specify in settings. You'd have to create a module within the Kentico UI and set the form control up but then you can easily add/remove roles who would be able to sync items. You could then even more specific and create settings for each role that have page types or objects that role has access to.

0 votesVote for this answer Unmark Correct answer

Recent Answers

Tomaso Pye answered on October 13, 2015 15:34

Thanks for the help Brenden.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.