/** * Removes a permission from the system. If recreated, the * permission would have to be set to all groups again. * * @final * @param string The name of the permission to remove * @return void */ public final function RemovePermission($permission_name) { cms_mapi_remove_permission($permission_name); }
<?php $gCms = cmsms(); echo '<p>Adding new permission...'; cms_mapi_create_permission($gCms, 'Manage All Content', 'Manage All Content'); echo '[done]</p>'; echo '<p>Removing stale permission...'; cms_mapi_remove_permission('Modify Page Structure'); echo '[done]</p>'; echo '<p>Updating schema version... '; $query = "UPDATE " . cms_db_prefix() . "version SET version = 32"; $db->Execute($query); echo '[done]</p>';