Let authorized people see un-approved events

RESOLVED FIXED

Status

Webtools
Air Mozilla
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: peterbe, Assigned: peterbe)

Tracking

Trunk

Firefox Tracking Flags

(firefox40 affected)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
Currently, if an event is added but needs approval, not even staff can see them. 
Instead, we should make the iCals, the browsing, the searching, the Roku browsing, the calendar, all work according to this logic::

 if not request.user:
    base = Event.objects.archived_and_approved()
 else:
    base = Event.objects.archived()

When a signed in person visits an event that doesn't yet have approval, it should explain that on the page and it should also mean you can't download or embed it.
(Assignee)

Comment 1

3 years ago
Created attachment 8596771 [details] [review]
Link to Github pull-request: https://github.com/mozilla/airmozilla/pull/285
(Assignee)

Updated

3 years ago
Assignee: nobody → peterbe

Comment 2

3 years ago
Commits pushed to master at https://github.com/mozilla/airmozilla

https://github.com/mozilla/airmozilla/commit/41a7d1793e2470f6a631afc56fd84e008f06f6b7
fixes bug 1157333 - Let authorized people see un-approved events

https://github.com/mozilla/airmozilla/commit/ec51b38a4027b8a47bf12002ef0e7d3d010c8fef
Merge pull request #285 from peterbe/bug-1157333-let-authorized-people-see-un-approved-events

fixes bug 1157333 - Let authorized people see un-approved events

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.