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

Bug #519060 reported by Martin Owens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

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)
affects: launchpadlib → launchpad-code
tags: added: api
Tim Penhey (thumper)
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → Medium
tags: added: trivial
Revision history for this message
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?

Revision history for this message
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.

Revision history for this message
Jonathan Lange (jml) wrote :

Why do you need this Martin?

Revision history for this message
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)
Changed in launchpad:
importance: Medium → Low
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.