diuversen opmerkingen 19062018
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by Pensare Software.
|
||||
* User: Theo Weijmer
|
||||
* Date: 20/06/2018
|
||||
* Time: 14:16
|
||||
*/
|
||||
|
||||
class AuthorisationController extends MY_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
if( AUTHENTICATED == FALSE ) die('NO ACCES');
|
||||
|
||||
$models = [];
|
||||
$libraries = [];
|
||||
|
||||
$this->load->model( $models );
|
||||
$this->load->library( $libraries );
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getRoleAuthorisations()
|
||||
{
|
||||
$roleAuthorisations = Role::getPagesAccessByRole();
|
||||
|
||||
return $roleAuthorisations;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -81,4 +81,11 @@ class ReportsController extends MY_Controller {
|
||||
$this->json( $result );
|
||||
}
|
||||
|
||||
public function saveCurrentFinnacialYear( $projectID )
|
||||
{
|
||||
$amount = $this->input->post( 'amount' );
|
||||
|
||||
Project::whereId( $projectID )->update( ['current_financial_year' => $amount] );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user