Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Content staging - user changes excluded but still being pushed

$
0
0
I have content staging set up. I want to use this module to synchronise all object changes between dev and UAT. However I don't want users synchronised. This is mainly because user passwords differ between dev and UAT. Therefore I've followed Kentico documentation to exclude users from the staging process. I'm using the following loader attribute: public class KingspanUserEvents : CMSLoaderAttribute { public override void Init() { UserInfo.TYPEINFO.Events.LogChange.Before += LogUserChange_Before; } private void LogUserChange_Before(object sender, CMS.DataEngine.LogObjectChangeEventArgs e) { // Gets the synchronized object GeneralizedInfo obj = e.Settings.InfoObj; if (obj != null) { // Always disable user synchronisation e.Settings.LogStaging = false; } } } Now, when I change a user I can see that no task is logged in the staging module. So far so good. However, there are still object actions that seem to be triggering user synchronisation. For example, I think one case is where I change security settings for a widget, selecting new authorised roles. It seems as though users associated with these roles are synchronised. Can anyone suggest a method to ensure that users are permanently and consistently excluded from staging? Thank you.

Viewing all articles
Browse latest Browse all 8832

Trending Articles