← Back to team overview

ubuntu-bengali-manual team mailing list archive

[Bug 610040] [NEW] Relax ACLs for local testing

 

Public bug reported:

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?

** Affects: loco-directory
     Importance: Wishlist
         Status: Confirmed

** Changed in: loco-directory
   Importance: Undecided => Wishlist

** Changed in: loco-directory
       Status: New => Confirmed

-- 
Relax ACLs for local testing
https://bugs.launchpad.net/bugs/610040
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to loco-directory.

Status in LoCo Directory: Confirmed

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?





Follow ups

References