3 Replies Latest reply on Sep 14, 2010 2:49 AM by dcaffrey

    MWG 7 Time Restriction Options

    dcaffrey

      Hi,

       

      Is it possible to only allow access to certain URL categories outside of normal business hours, i.e. before 9am, 12-2pm and after 5.30pm

       

      Are there any library rulesets for this ?

       

      Thanks,

       

      Dec

        • 1. Re: MWG 7 Time Restriction Options

          I didn't actually enter this into a gteway to test it, but typed it off the top of my head, so check my work...

          For:

          00:00-08:59 or
          12:00-13:59 or
          17:30-17:59 or
          18:00-23:59 or
          Saturday or Sunday

           

          Try:

          1:(    DateTime.Time.Hour less than or equals 8
          2: OR (DateTime.Time.Hour greater than or equals 12
          3: AND DateTime.Time.Hour less than 14)
          4: OR (DateTime.Time.Hour greater than or equals 17
          5: AND DateTime.Time.Minute greater than or equals 30)
          6: OR DateTime.Time.Hour greater than or equals 18
          7: OR (DateTime.Date.WeekDayNumber equals 0
          8: OR DateTime.Date.WeekDayNumber equals 6) )
          9: AND URL.Category at least one in list "Allowed Non-work hours"

           

          • 2. Re: MWG 7 Time Restriction Options
            dcaffrey

            Thanks for the prompt reply Erik, will try this Monday and report back.

             

            Dec

            • 3. Re: MWG 7 Time Restriction Options
              dcaffrey

              Thanks again Erik, didn't use quite the same sytax but pointed me in the right direction, I decided to set it up to Block during core business hours

               

              Dec