<?php
namespace Claromentis\Projects\Controller;

$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] ?: array()) + array("_a9596c67214a1fa636000a14a38a3" . "254" => base64_decode("cHJvamVjdHMvYWRtaW4vZGVmYXVsdF9yb2" . "xlcy5odG1s"), "_8f7cb826246f09cf954d32b" . "6e58d9110" => base64_decode("YWRtaW5fbWVudV" . "9kZWZhdWx0X3Jv" . "bGVzLitjbGFzcw" . "=="), "_86c691b8500748b837f000ad4" . "e5f6cc9" => base64_decode("cHJvamVjdHMuYWRta" . "W4ucGVybXMuc2F2ZW" . "Q="), "_8ec8f26c742278f" . "90615f50d682eea7" . "9" => base64_decode("UE" . "9T" . "VA" . "=="), "_2b39ab477b13830a54b0ba0a" . "da25cbd7" => base64_decode("YWN0aXZ" . "l"), "_719985332533dc55e" . "d3c0df5fdab76ef" => base64_decode("L3Byb2plY3RzL2FkbWluL2RlZmF1bH" . "Q="), "_e7ad2405a1a6aca58133" . "c3e4d576605e" => base64_decode("cHJvamVjdHMuYWRtaW4uZGVmYXVsdF9yb2xlcy5" . "0aXRsZQ=="), "_4d707fab93bebb00bbe69e815" . "9697c90" => base64_decode(""));
use Claromentis\Core\Acl\RoleBased\RoleDialog;
use Claromentis\Core\Http\RedirectResponse;
use Claromentis\Core\Http\RequestData;
use Claromentis\Core\Http\ResponseFactory;
use Claromentis\Core\Http\TemplaterCallResponse;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Projects\Permissions;
use Psr\Http\Message\ServerRequestInterface;
class AdminDefaultRolesController
{
    
    
    protected $lmsg;
    
    
    protected $response_factory;
    
    
    protected $role_dialog;
    public function __construct(Lmsg $lmsg, ResponseFactory $response_factory, RoleDialog $role_dialog)
    {
        $this->lmsg = $lmsg;
        $this->response_factory = $response_factory;
        $this->role_dialog = $role_dialog;
    }
    
    
    
    
    
    
    
    
    
    public function Show(ServerRequestInterface $_b791059c94b285cdf1c90ca6f3a8f2a6, RequestData $request_data)
    {
        $_678d945258a520c3df1c42fe4b558f34 = ($this->lmsg)($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_e7ad240" . "5a1a6aca" . "58133c3e" . "4d576605" . "e"]);
        $_e05e0022a2e5ad344b9c4a0d3f64e1a5 = $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_4d707fa" . "b93bebb0" . "0bbe69e8" . "159697c9" . "0"];
        $_8df4fa2d5c8d8c2e6de4577a36506bb1 = false;
        $_bbcdf77b6167a26a35212c8181097030 = [];
        if ($_b791059c94b285cdf1c90ca6f3a8f2a6->getMethod() === $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_8ec8f26" . "c742278f" . "90615f50" . "d682eea7" . "9"]) {
            $_8df4fa2d5c8d8c2e6de4577a36506bb1 = false;
            $request_data->CheckToken();
            
            
            $_3c350a297ca04729d0cf61499b1c6328 = $this->role_dialog;
            $_ef09d0d8b115a674e477bb3005e865ad = $_3c350a297ca04729d0cf61499b1c6328->Load(Permissions::PROJECT_AGGREGATION, 0);
            $_3c350a297ca04729d0cf61499b1c6328->Update($_b791059c94b285cdf1c90ca6f3a8f2a6, $_ef09d0d8b115a674e477bb3005e865ad);
            $_3c350a297ca04729d0cf61499b1c6328->Save($_ef09d0d8b115a674e477bb3005e865ad);
            $_e05e0022a2e5ad344b9c4a0d3f64e1a5 = ($this->lmsg)($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_86c691b8500748b837f000ad4e" . "5f6cc9"]);
            return RedirectResponse::httpRedirect($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_71998533253" . "3dc55ed3c0df" . "5fdab76ef"], $_e05e0022a2e5ad344b9c4a0d3f64e1a5, $_8df4fa2d5c8d8c2e6de4577a36506bb1);
        }
        $_bbcdf77b6167a26a35212c8181097030[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_8f7cb826246f09cf95" . "4d32b6e58d9110"]] = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_2b39ab477b13830a54b0ba" . "0ada25cbd7"];
        $_a0624a55e60ee7aae11f61e56eea7c0c = $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_a9596c67214a1" . "fa636000a14a38" . "a3254"];
        $_fd5a3a643834299cbdadfc3540ba0bcb = $this->response_factory->GetTemplaterCallResponse($_a0624a55e60ee7aae11f61e56eea7c0c, $_bbcdf77b6167a26a35212c8181097030, $_678d945258a520c3df1c42fe4b558f34);
        $_fd5a3a643834299cbdadfc3540ba0bcb->SetMessage($_e05e0022a2e5ad344b9c4a0d3f64e1a5, $_8df4fa2d5c8d8c2e6de4577a36506bb1);
        return $_fd5a3a643834299cbdadfc3540ba0bcb;
    }
}