Files
piratepoet/lib/Router/Permissions.php
Jonathan Labreuille 34c237ce8e Load/Save settings
- renamed all settings with dot syntax
- refactored Menu->settings()
- changed schema of settings table to allow longer setting name and value
- added getAll() static method on Setting Model to fetch all settings (with proper unserialize of value)
2015-10-15 14:22:27 +02:00

15 lines
252 B
PHP

<?php
namespace MailPoet\Router;
if(!defined('ABSPATH')) exit;
class Permissions {
function __construct() {
}
function set($permissions = array()) {
$result = \MailPoet\Util\Permissions::set($permissions);
wp_send_json($result);
}
}