Fixing variable names
@@ -694,9 +694,9 @@ def set_resource_flag(request, shortkey, *args, **kwargs):
_set_resource_sharing_status(request, user, res, flag_to_set='shareable', flag_value=False)
elif flag == 'make_shareable':
_set_resource_sharing_status(request, user, res, flag_to_set='shareable', flag_value=True)
- elif t == 'make_require_lic_agreement':
+ elif flag == 'make_require_lic_agreement':
res.set_require_download_agreement(user, value=True)
- elif t == 'make_not_require_lic_agreement':
+ elif flag == 'make_not_require_lic_agreement':
res.set_require_download_agreement(user, value=False)
if request.META.get('HTTP_REFERER', None):
