def has_csv_permission(self, request, obj=None):
if getattr(settings, '<STR_LIT>', None):<EOL><INDENT>opts = self.opts<EOL>codename = '<STR_LIT>' % ('<STR_LIT>', opts.object_name.lower())<EOL>return request.user.has_perm("<STR_LIT>" % (opts.app_label, codename))<EOL><DEDENT>return True<EOL>
Returns True if the given request has permission to add an object.
Can be overridden by the user in subclasses. By default, we assume
all staff users can use this action unless `DJANGO_EXPORTS_REQUIRE_PERM`
is set to True in your django settings.