]> git.ozlabs.org Git - patchwork/commit
models: Project.is_editable to check whether a user has edit rights
authorGuilherme Salgado <guilherme.salgado@linaro.org>
Tue, 12 Apr 2011 11:35:10 +0000 (11:35 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 14 Apr 2011 06:55:33 +0000 (14:55 +0800)
commitb18d5e2d250c1993b231a812b0ad71c131592ea5
treedde8dc8ed3a452437c2292c7bc2accdf913581bb
parente3f9cdfdfa96f5074a31fe2de0caf0ac52b1aff9
models: Project.is_editable to check whether a user has edit rights

This is to replace the couple of places where we duplicate this same
check.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py
apps/patchwork/views/__init__.py