Need a branch method to ask if a user can write to a given branch

Bug #519060 reported by Martin Owens on 2010-02-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself

Bug Description

We need an API method on a branch object which returns True of False should the branch be writeable for a given user.

Michael Bienia (geser) on 2010-02-08
affects: launchpadlib → launchpad-code
tags: added: api
Tim Penhey (thumper) on 2010-02-10
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → Medium
tags: added: trivial
Tim Penhey (thumper) wrote :

Martin, do you just want to check for the logged in user? As in the owner of the oauth token? Or do you want to check for *any* user?

Martin Owens (doctormo) wrote :

Which ever is easier, I need for the oauth token'd user, but I can see other people wanted any user.

Jonathan Lange (jml) wrote :

Why do you need this Martin?

Martin Owens (doctormo) wrote :

Because at the moment it's very expensive to test if a user can write to a branch (is a member of groups etc) and that means my app stalls while it's collecting the info.

I need the info because I don't allow people to do direct checkouts where the push and pull locations are the same, unless they have write permissions.

Curtis Hovey (sinzui) on 2011-09-27
Changed in launchpad:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers