This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation
 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 
<?php defined('C5_EXECUTE') or die("Access Denied.");
class Concrete5_Controller_Dashboard_System_Permissions_Advanced extends DashboardBaseController {
    
    public function enable_advanced_permissions() {
        if ($this->token->validate("enable_advanced_permissions")) { 
            Config::save('PERMISSIONS_MODEL', 'advanced');
            $this->redirect('/dashboard/system/permissions/advanced', 'permissions_enabled');
        } else {
            $this->error->add($this->token->getErrorMessage());
        }
    }
    
    public function permissions_enabled() {
        $this->set('message', t('Advanced permissions enabled.'));
    }

}