Files
dbois/public/js/lib/dataservices/authorisationdataService.js
2018-07-29 10:11:02 +02:00

25 lines
522 B
JavaScript

/**
* Created by Pensare Software.
* User: Theo Weijmer
* Date: 20/06/2018
* Time: 14:15
*/
dbo.authorisationDataService = {
getRoleAuthorisations: function ( callback ) {
$.getJSON( 'index.php/beheer/AuthorisationController/getRoleAuthorisations' )
.done( function ( data ) {
callback( data );
} );
},
toggleAuhorisation: function ( submitDATA ) {
$.post( 'index.php/beheer/AuthorisationController/toggleAuhorisation', submitDATA );
}
}