diff --git a/wf_job/wf_job.services.inc b/wf_job/wf_job.services.inc index 75a3d81..09ebd37 100644 --- a/wf_job/wf_job.services.inc +++ b/wf_job/wf_job.services.inc @@ -48,7 +48,7 @@ function wf_job_services_resources() { 'file' => array('type' => 'inc', 'module' => 'wf_job', 'name' => 'wf_job.services'), 'callback' => 'wf_job_services_update', 'access callback' => 'wf_job_services_access', - 'access arguments' => array('update'), + 'access arguments' => array('edit'), 'access arguments append' => TRUE, 'args' => array( array( @@ -129,7 +129,7 @@ function wf_job_services_resources() { 'file' => array('type' => 'inc', 'module' => 'wf_job', 'name' => 'wf_job.services'), 'help' => t('This method returns the job\'s current environment.'), 'access callback' => 'wf_job_services_access', - 'access arguments' => array('environment'), + 'access arguments' => array('view'), 'access arguments append' => TRUE, 'callback' => 'wf_job_services_environment', 'args' => array( @@ -151,32 +151,6 @@ function wf_job_services_resources() { ), ), ), - 'targeted_actions' => array( - 'deployment' => array( - 'file' => array('type' => 'inc', 'module' => 'wf_job', 'name' => 'wf_job.services'), - 'help' => t('Record the outcome of a deployment.'), - 'access callback' => 'wf_job_services_access', - 'access arguments' => array('deployment'), - 'access arguments append' => TRUE, - 'callback' => 'wf_job_services_deployment', - 'args' => array( - array( - 'name' => 'jid', - 'type' => 'int', - 'description' => t('The id of the job for which to get an environment.'), - 'source' => array('path' => '0'), - 'optional' => FALSE, - ), - array( - 'name' => 'succeeded', - 'type' => 'struct', - 'description' => t("An object with properties 'succeeded' and a 'message'Ê."), - 'source' => 'data', - 'optional' => FALSE, - ), - ), - ) - ), ), ); return $resources;