tussenopslag
This commit is contained in:
@@ -297,7 +297,6 @@ class Rapijkpunten extends MY_Controller{
|
||||
$orgversies = $this->clean_input('selectie');
|
||||
|
||||
if (!$orgid || !$orgversies || !$orguserid) return;
|
||||
|
||||
$aantal = count($orgversies);
|
||||
$userLijsten = new Userlijsten($orguserid, $orgid, $orgversies);
|
||||
$lijsten = $userLijsten->getLijsten();
|
||||
|
||||
@@ -160,7 +160,8 @@ function getambitie(){
|
||||
}
|
||||
$toporgs = rtrim($toporgs, ',' );
|
||||
|
||||
$ambitie = $this->Ambities_model->mh_get_ambitie($module, $ambitieorgs, $toporgs);
|
||||
$aantalY = $this->Ijkpunten_model->telijkpunten_bij_orgs($toporgs, $module);
|
||||
$ambitie = $this->Ambities_model->mh_get_ambitie($module, $ambitieorgs, $toporgs, $aantalY);
|
||||
if(!$ambitie) return json_encode("Er is geen actieve versie bij het instrument");
|
||||
|
||||
echo json_encode($ambitie);
|
||||
@@ -175,10 +176,14 @@ function saveAmbitie(){
|
||||
|
||||
|
||||
|
||||
if($this->super == false){
|
||||
if($this->super == false) {
|
||||
if ($orgid != $this->orgid) return;
|
||||
$result = $this->Autorisatiesnivos_model->checkmanage($this->userid, $this->orgid);
|
||||
if(!$result) return;
|
||||
$saveorg = $this->globorgid;
|
||||
if (!$result) return;
|
||||
}
|
||||
else{
|
||||
$saveorg = $orgid;
|
||||
}
|
||||
$bestaand = $this->Ambities_model->get_fieldvalue(['organisatie_id'=>$orgid,
|
||||
'orgversie_id' =>$orgversieid], 'id');
|
||||
|
||||
Reference in New Issue
Block a user