Skip to content

Commit e405fc8

Browse files
authored
Merge pull request #3434 from learningequality/rtibbles-patch-2
Add admin trap door for space checks.
2 parents 062a545 + 74896ca commit e405fc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contentcuration/contentcuration/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ def can_edit(self, channel_id):
226226
return Channel.filter_edit_queryset(Channel.objects.all(), self).filter(pk=channel_id).exists()
227227

228228
def check_space(self, size, checksum):
229+
if self.is_admin:
230+
return True
231+
229232
active_files = self.get_user_active_files()
230233
if active_files.filter(checksum=checksum).exists():
231234
return True

0 commit comments

Comments
 (0)