expired view access is not cleared

Bug #518595 reported by Evan Goldenberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Undecided
Evan Goldenberg

Bug Description

When time limits are set for view access, the access is not cleared from the view once the access period is over. Access *does* appear to cease.

To reproduce:

- Create a view
- Set Public access for the view with an end time that is a few minutes away
- Wait for the access to expire
- External users can no longer access the view, but the owner's "My Views" page continues to list "public" for "who can see this view", and the expired access information is still present in the "Edit Access" page.

Revision history for this message
Evan Goldenberg (naveg) wrote :

A related issue is that the view access page allows you to specify access that has a stop date in the past.

Changed in mahara:
assignee: nobody → Evan Goldenberg (naveg)
milestone: none → 1.3.0
Revision history for this message
Evan Goldenberg (naveg) wrote :

Fixed both of these on master.

Rather than setting up a cron job or doing extra database reads when a view is accessed, I decided to simply hide expired access on the view access page. When the view owner visits the page to change access, expired access will be deleted when the form is saved.

Changed in mahara:
status: New → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.