Se agrega metodo DELETE y POST para PM USERS. Se agregan validaciones en PROJECT USERS.

This commit is contained in:
Freddy Daniel Rojas Valda
2014-02-04 16:25:34 -04:00
parent 79c8f1bccd
commit 4d29965128
4 changed files with 241 additions and 415 deletions

View File

@@ -281,7 +281,7 @@ class ProjectUser
$oCriteria->add( \UsersPeer::USR_USERNAME, $sWS_USER );
$userIsAssigned = \GroupUserPeer::doCount( $oCriteria );
if (! ($userIsAssigned >= 1)) {
throw (new \Exception( "The `usr_uid` `" . $sWS_USER . "` doesn't have the activity `tas_uid` `" . $sTASKS . "` assigned"));
throw (new \Exception( "The `usr_uid` `" . $sWS_USER . "` doesn't have the activity `act_uid` `" . $sTASKS . "` assigned"));
}
}
$oDataset = \TaskUserPeer::doSelectRS($oCriteria);