allow uploading videos to canAddItems
This commit is contained in:
parent
58c36761ba
commit
2c3ff91c91
2 changed files with 2 additions and 1 deletions
|
|
@ -286,6 +286,7 @@ class File(models.Model):
|
|||
def editable(self, user):
|
||||
p = user.get_profile()
|
||||
return p.get_level() in ('admin', 'staff') or \
|
||||
(not self.available and p.capability('canAddItems')) or \
|
||||
self.instances.filter(volume__user=user).count() > 0 or \
|
||||
(not self.item or self.item.user == user)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue