forked from 0x2620/pandora
admins can move files too
This commit is contained in:
parent
a9165e7230
commit
b7c015c27f
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue