forked from enviPath/enviPy
comments
This commit is contained in:
@ -1076,11 +1076,11 @@ def package(request, package_uuid):
|
||||
PackageManager.update_permissions(current_user, current_package, grantee, max_perm)
|
||||
return redirect(current_package.url)
|
||||
elif cc_string is not None:
|
||||
if cc_string == "no-license":
|
||||
if cc_string == "no-license": # Reset the package's license
|
||||
current_package.license = None
|
||||
current_package.save()
|
||||
return redirect(current_package.url)
|
||||
else:
|
||||
else: # Get the license and assign it to the package
|
||||
current_package.license = License.objects.get(cc_string=cc_string)
|
||||
current_package.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user