From b7c015c27f801c8557562ba3fe450185c761fa42 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 18 Oct 2011 11:23:05 +0200 Subject: [PATCH] admins can move files too --- pandora/archive/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 0d92e60f..57ff9378 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -233,7 +233,8 @@ class File(models.Model): return srt def editable(self, user): - return self.instances.filter(volume__user=user).count() > 0 + return user.get_profile().get_level() == 'admin' or \ + self.instances.filter(volume__user=user).count() > 0 def save_chunk(self, chunk, chunk_id=-1, done=False): if not self.available: