|
@@ -2124,10 +2124,21 @@ function(){
|
|
|
if (operator=='crfEditor'){
|
|
|
|
|
|
if (currentUser.UserId!=formCreatorId){
|
|
|
- let msg='User '+currentUser.DisplayName;
|
|
|
- msg+=' has no permission on this form';
|
|
|
- this.generateErrorMsg(msg);
|
|
|
- return;
|
|
|
+ if ("allowFormReassignment" in config.formConfig.settings){
|
|
|
+ let that=this;
|
|
|
+ let action=new Object();
|
|
|
+ action.name="formReassignement";
|
|
|
+ action.cb=function(){that.doNothing();}
|
|
|
+ config.formConfig.crfEntry['UserId']=currentUser.UserId;
|
|
|
+ let status=config.formConfig.crfEntry['FormStatus'];
|
|
|
+ this.updateFlag(status,action);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ let msg='User '+currentUser.DisplayName;
|
|
|
+ msg+=' has no permission on this form';
|
|
|
+ this.generateErrorMsg(msg);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (operator=='crfMonitor' || operator=='crfSponsor'){
|