Relax ACLs for local testing

Bug #610040 reported by Chris Johnston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
Wishlist
Chris Johnston

Bug Description

07.16.20 * cjohnston isnt an admin on a team, so on my local running copy I cant make changes to a team to test things out.. was wondering if there is a way around
          that
07.17.00 < cjohnston> I had asked back in may about making ~loco-directory-dev "admins" or something so that we could do stuff like that
07.17.09 < dholbach> ah ok
07.17.17 < dholbach> I have an idea for fixing this
07.17.25 < dholbach> but I'm completely out of time
07.17.40 < cjohnston> I figured your quite busy
07.17.57 < dholbach> until now, you can just add "or True" to all the "is_on_lc" checks in the /views.py files
07.18.55 < dholbach> ie:
07.18.56 < dholbach> is_on_lc = launchpad.is_user_on_loco_council(request.user)
07.18.58 < dholbach> ?
07.19.01 < dholbach> is_on_lc = launchpad.is_user_on_loco_council(request.user) or True
07.19.07 < dholbach> just do it locally for testing for now
07.20.07 < dholbach> cjohnston: can you file a bug for relaxing the ACLs for local testing?

Tags: development

Related branches

Changed in loco-directory:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Michael Hall (mhall119) wrote :

From the admin interface, just add your user account to those teams.

Revision history for this message
Daniel Holbach (dholbach) wrote :

I'd love to see a more general common/acl.py where we move all ACL tests too and also test if settings.DEBUG = True and relax ACLs in that case.

Changed in loco-directory:
status: Confirmed → Triaged
tags: added: development
Changed in loco-directory:
assignee: nobody → Chris Johnston (chrisjohnston)
status: Triaged → In Progress
Changed in loco-directory:
status: In Progress → Fix Committed
milestone: none → 0.2.14
Changed in loco-directory:
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.