@@ -457,6 +457,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
457457 "same_internal_review" : _ ("Open Review" ),
458458 "same_determination" : _ ("Ready For Determination" ),
459459 "same_rejected" : _ ("Dismiss" ),
460+ "same_withdrawn" : {
461+ "display" : _ ("Withdraw" ),
462+ "permissions" : {UserPermissions .APPLICANT },
463+ "method" : "withdraw" ,
464+ },
460465 },
461466 "display" : _ ("Need screening" ),
462467 "public" : _ ("Application Received" ),
@@ -476,6 +481,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
476481 "method" : "create_revision" ,
477482 "custom" : {"trigger_on_submit" : True },
478483 },
484+ "same_withdrawn" : {
485+ "display" : _ ("Withdraw" ),
486+ "permissions" : {UserPermissions .APPLICANT },
487+ "method" : "withdraw" ,
488+ },
479489 },
480490 "display" : _ ("More information required" ),
481491 "stage" : RequestSame ,
@@ -486,6 +496,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
486496 "same_internal_review" : {
487497 "transitions" : {
488498 "same_post_review_discussion" : _ ("Close Review" ),
499+ "same_withdrawn" : {
500+ "display" : _ ("Withdraw" ),
501+ "permissions" : {UserPermissions .APPLICANT },
502+ "method" : "withdraw" ,
503+ },
489504 INITIAL_STATE : _ ("Need screening (revert)" ),
490505 },
491506 "display" : _ ("Review" ),
@@ -503,6 +518,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
503518 "same_determination" : _ ("Ready For Determination" ),
504519 "same_internal_review" : _ ("Open Review (revert)" ),
505520 "same_rejected" : _ ("Dismiss" ),
521+ "same_withdrawn" : {
522+ "display" : _ ("Withdraw" ),
523+ "permissions" : {UserPermissions .APPLICANT },
524+ "method" : "withdraw" ,
525+ },
506526 },
507527 "display" : _ ("Ready For Discussion" ),
508528 "stage" : RequestSame ,
@@ -521,6 +541,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
521541 "method" : "create_revision" ,
522542 "custom" : {"trigger_on_submit" : True },
523543 },
544+ "same_withdrawn" : {
545+ "display" : _ ("Withdraw" ),
546+ "permissions" : {UserPermissions .APPLICANT },
547+ "method" : "withdraw" ,
548+ },
524549 },
525550 "display" : _ ("More information required" ),
526551 "stage" : RequestSame ,
@@ -534,6 +559,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
534559 "same_almost" : _ ("Accept but additional info required" ),
535560 "same_accepted" : _ ("Accept" ),
536561 "same_rejected" : _ ("Dismiss" ),
562+ "same_withdrawn" : {
563+ "display" : _ ("Withdraw" ),
564+ "permissions" : {UserPermissions .APPLICANT },
565+ "method" : "withdraw" ,
566+ },
537567 },
538568 "display" : _ ("Ready for Determination" ),
539569 "permissions" : hidden_from_applicant_permissions ,
@@ -551,6 +581,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
551581 "transitions" : {
552582 "same_accepted" : _ ("Accept" ),
553583 "same_post_review_discussion" : _ ("Ready For Discussion (revert)" ),
584+ "same_withdrawn" : {
585+ "display" : _ ("Withdraw" ),
586+ "permissions" : {UserPermissions .APPLICANT },
587+ "method" : "withdraw" ,
588+ },
554589 },
555590 "display" : _ ("Accepted but additional info required" ),
556591 "stage" : RequestSame ,
@@ -561,6 +596,11 @@ def make_permissions(edit=None, review=None, view=None, withdraw=None):
561596 "stage" : RequestSame ,
562597 "permissions" : no_permissions ,
563598 },
599+ "same_withdrawn" : {
600+ "display" : _ ("Withdraw" ),
601+ "stage" : RequestSame ,
602+ "permissions" : no_permissions ,
603+ },
564604 },
565605]
566606
0 commit comments