.
This commit is contained in:
+3
-3
@@ -119,7 +119,7 @@ def rapid_split(request, pk):
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
not request.user.groups.filter(name="rapid_checker").exists()
|
not request.user.groups.filter(name="rapid_checker").exists()
|
||||||
and request.user not in question.author.all()
|
and request.user not in rapid.author.all()
|
||||||
):
|
):
|
||||||
raise PermissionDenied()
|
raise PermissionDenied()
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ def rapid_split(request, pk):
|
|||||||
old_abnormality = rapid.abnormality.all()
|
old_abnormality = rapid.abnormality.all()
|
||||||
old_region = rapid.region.all()
|
old_region = rapid.region.all()
|
||||||
old_examination = rapid.examination.all()
|
old_examination = rapid.examination.all()
|
||||||
old_site = rapid.site.all()
|
#old_site = rapid.site.all()
|
||||||
old_author = rapid.author.all()
|
old_author = rapid.author.all()
|
||||||
|
|
||||||
if not images:
|
if not images:
|
||||||
@@ -142,7 +142,7 @@ def rapid_split(request, pk):
|
|||||||
rapid.abnormality.set(old_abnormality)
|
rapid.abnormality.set(old_abnormality)
|
||||||
rapid.region.set(old_region)
|
rapid.region.set(old_region)
|
||||||
rapid.examination.set(old_examination)
|
rapid.examination.set(old_examination)
|
||||||
rapid.site.set(old_site)
|
#rapid.site.set(old_site)
|
||||||
rapid.author.set(old_author)
|
rapid.author.set(old_author)
|
||||||
images[n].rapid = rapid
|
images[n].rapid = rapid
|
||||||
images[n].save()
|
images[n].save()
|
||||||
|
|||||||
Reference in New Issue
Block a user