Skip to content

Instantly share code, notes, and snippets.

View jhoffmann's full-sized avatar

John Hoffmann jhoffmann

  • Canada
  • 13:30 (UTC -06:00)
View GitHub Profile
@sadekbaroudi
sadekbaroudi / createAndUpdateACLRoles.php
Created June 12, 2015 23:57
SugarCRM 7 - ACL Role create / update deployment script
<?php
define('sugarEntry', true);
require_once('include/entryPoint.php');
require_once('modules/ACLRoles/ACLRole.php');
require_once('modules/ACLActions/actiondefs.php');
// metadata for creates or updates, see all possibilities for 'def' in modules/ACLActions/actiondefs.php
$acl = array(
// Create new role