File: /var/www/Gosuryaid/wp/wp-content/plugins/ultimate-maps-by-supsystic/modules/options/controller.php
<?php
class optionsControllerUms extends controllerUms {
	public function saveGroup() {
		$res = new responseUms();
		if($this->getModel()->saveGroup(reqUms::get('post'))) {
			$res->addMessage(__('Done', UMS_LANG_CODE));
		} else
			$res->pushError ($this->getModel('options')->getErrors());
		return $res->ajaxExec();
	}
	public function getPermissions() {
		return array(
			UMS_USERLEVELS => array(
				UMS_ADMIN => array('saveGroup')
			),
		);
	}
}