Stop the staff hack for deciding to display Calendar in global nav, et al.

Bug #956020 reported by JimPGlenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Won't Fix
Wishlist
Unassigned

Bug Description

We have a number of hacks in Classic KARL. For example, to determine if we should show the Calendar as a top-level tag, we do a test on whether the current requesting user is "staff". That's a specific policy. Instead, we should make a new permission and diddle it on the site, allowing people to adjust the ACL.

This pattern is in a number of places. Find places where we check to see if a user is staff and refactor to use permissions instead.

refer to https://github.com/pauleveritt/pyramid_bottlecap/issues/34 for history.

Tags: ux2
JimPGlenn (jpglenn09)
Changed in karl3:
importance: Undecided → Medium
milestone: none → m96
tags: added: ux2
Changed in karl3:
milestone: m96 → m99
Changed in karl3:
milestone: m99 → m104
Changed in karl3:
milestone: m104 → m108
Revision history for this message
Balazs Ree (ree) wrote :

perhaps it's easiest if I take this one.

Changed in karl3:
assignee: nobody → Balazs Ree (ree)
Changed in karl3:
milestone: m108 → m111
Revision history for this message
Balazs Ree (ree) wrote :

Reading the task and understanding in depth, I conclude that this is independent from the work I am already doing on the global calendar, and it is completely server specific. That said, I give this back to the pool so perhaps it fits someone else better.

Changed in karl3:
assignee: Balazs Ree (ree) → nobody
Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 956020] Re: Stop the staff hack for deciding to display Calendar in global nav, et al.

Yes, this is something Chris saw early in the ux2 process. This is really part of the "rip out ux1" task we might do later.

--Paul

On Jun 20, 2012, at 6:24 AM, Balazs Ree wrote:

> Reading the task and understanding in depth, I conclude that this is
> independent from the work I am already doing on the global calendar, and
> it is completely server specific. That said, I give this back to the
> pool so perhaps it fits someone else better.
>
> ** Changed in: karl3
> Assignee: Balazs Ree (ree) => (unassigned)
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/956020
>
> Title:
> Stop the staff hack for deciding to display Calendar in global nav, et
> al.
>
> Status in KARL3:
> New
>
> Bug description:
> We have a number of hacks in Classic KARL. For example, to determine
> if we should show the Calendar as a top-level tag, we do a test on
> whether the current requesting user is "staff". That's a specific
> policy. Instead, we should make a new permission and diddle it on the
> site, allowing people to adjust the ACL.
>
> This pattern is in a number of places. Find places where we check to
> see if a user is staff and refactor to use permissions instead.
>
> refer to https://github.com/pauleveritt/pyramid_bottlecap/issues/34
> for history.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl3/+bug/956020/+subscriptions

Revision history for this message
Tres Seaver (tseaver) wrote :

Other uses:

- kark/ux2/panels.py tests for 'user_is_staff' to determine whether to include
  the 'Tags' link on the overflow menu.

- kar/views/templates/contentfeeds.pt restricts the 'feedoptions' div to
  users who are staff. Likewise for karl/us2/templates/contentfeeds.pt

- karl/view/templates/snippets.pt tests it (in the 'communities-listing-head'
  macro) to determine whether to show the 'community-filters' div.

- karl/views/templates/footer.pt tests it to determine whether to show
  links to the offices. Likewise karl/ux2/templates/footer.pt.

Changed in karl3:
milestone: m111 → m114
JimPGlenn (jpglenn09)
Changed in karl3:
milestone: m114 → m115
Changed in karl3:
milestone: m115 → m116
Changed in karl3:
milestone: m116 → m118
Changed in karl3:
milestone: m118 → m120
Changed in karl3:
milestone: m120 → m123
Changed in karl3:
milestone: m123 → m124
Changed in karl3:
importance: Medium → Wishlist
Changed in karl3:
milestone: m124 → m999
Changed in karl3:
status: New → Won't Fix
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.