Commit a21497ccca9a9ccd0067f9c9b91b3c585ac9a169

Authored by Elena.Budnik
1 parent 7baca0ef

redmine #5645

Showing 2 changed files with 13 additions and 8 deletions   Show diff stats
php/classes/AmdaAction.php
... ... @@ -870,12 +870,14 @@ class AmdaAction
870 870  
871 871 if (isset($obj->username) && isset($obj->password) && isset($obj->sessionID))
872 872 {
873   - //$dd = new WSUserMgr();
  873 + //$dd = new WSUserMgr();
874 874 //$dd->init($obj->username,$obj->password,$obj->sessionID);
875 875 return array('success' => false, "message" => "AKKA-KERNEL-INT - WS support not implemented");
876 876 }
877   - else
  877 + else {
878 878 $dd = new UserMgr();
  879 + $dd->setSpecialSettings();
  880 + }
879 881  
880 882 //TODO error handling
881 883 if (($res = $dd -> ddCheckUser()) != 0)
... ... @@ -887,14 +889,12 @@ class AmdaAction
887 889 }
888 890  
889 891 if ($dd->user == 'impex')
890   - {
891   - //if ($dd->getWsSize() > DISK_QUOTA * 100)
892   - // error_log('Natacha! It is time to CLEAN UP IMPEX WS!',1,'nbourrel@irap.omp.eu');
  892 + {
893 893 return array('success' => false, "message" => "AKKA-KERNEL-INT - WS support for IMPEx not implemented");
894 894 }
895 895 else
896 896 {
897   - // check disk space
  897 + // check disk space
898 898 if ($dd->getWsSize() > DISK_QUOTA)
899 899 return array('success' => false, 'message' => 'Please clean up your workspace.<br/>No more space is available');
900 900 }
... ...
php/classes/UserMgr.php
... ... @@ -195,7 +195,7 @@ class UserMgr
195 195 // Attention !!! CONSTANT cannot be redefined
196 196 define("$key",$value);
197 197 }
198   - }
  198 + }
199 199 }
200 200 /*
201 201 * Totally replace IMPEX staff in user remote tree
... ... @@ -600,7 +600,12 @@ unlink(USERWSDIR.&#39;RemoteParams.xml&#39;);
600 600  
601 601 //TODO sessionID = user + WSname
602 602 $sessionID = $this->user;
603   -
  603 +
  604 + /*
  605 + * Special settings are defined in the generic_data/SpecialSettings/Settings.xml
  606 + */
  607 + $this->setSpecialSettings();
  608 +
604 609 /*
605 610 * Special groups are defined in the generic_data/SpecialSettings/Groups.xml
606 611 */
... ...