public virtual void SaveDefaultAuthorizations(AuthorizationEntity[] authorizations) { if (authorizations != null && authorizations.Length > 0) { context.Impl.Context.CommandContext.RunWithoutAuthorization(() => { foreach (AuthorizationEntity authorization in authorizations) { if (authorization.Id == null) { AuthorizationManager.Add(authorization); } else { AuthorizationManager.Update(authorization); } } }); } }