Пример #1
0
 private void SetAccessForAll(Web web)
 {
     try
     {
         if (!request.IsConfidential)
         {
             web.AddReaderAccess(request.SharePointOnPremises ? BuiltInIdentity.Everyone : BuiltInIdentity.EveryoneButExternalUsers);
         }
     }
     catch (Exception ex)
     {
         Log.Error("Provisioning.Common.MdlzComponents.MdlzCommonCustomizations.SetAccessForAll", ex.Message);
         throw;
     }
 }