Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1107 | Revision 1109 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1107 Revision 1108
Zeile 24... Zeile 24...
24
        $tool = $property->tool;
24
        $tool = $property->tool;
25
        $module = $tool->module;
25
        $module = $tool->module;
26
        $GLOBALS["web_rechte"][$module->nume][$tool->button_name][$property->interner_name] = $property->Bezeichnung;
26
        $GLOBALS["web_rechte"][$module->nume][$tool->button_name][$property->interner_name] = $property->Bezeichnung;
27
    }
27
    }
28
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
28
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
29
    $uId = Auth::guard( 'admin' )->id();
29
    if ( isset( $_SESSION["admin"]["uId"] ) )
30
    $admin = Auth::guard( "admin" )->user()->admin;
-
 
31
    $user_rechte = $GLOBALS["web_rechte"];
-
 
32
    if ( !$admin )
-
 
33
    {
30
    {
-
 
31
        $uId = $_SESSION["admin"]["uId"];
-
 
32
        $admin = $_SESSION["admin"]["user"]->admin;
-
 
33
        $user_rechte = $GLOBALS["web_rechte"];
-
 
34
        if ( !$admin )
-
 
35
        {
34
        $user_rechte = UserProperty::with( [ "property", "tool", "module" ] )->where( "backend_user_id", "=", $uId )->get();
36
            $user_rechte = UserProperty::with( [ "property", "tool", "module" ] )->where( "backend_user_id", "=", $uId )->get();
-
 
37
        }
-
 
38
        \View::share( "user_rechte", $this->getUserRechte() );
35
    }
39
    }
36
    \View::share( "user_rechte", $this->getUserRechte() );
-
 
37
    //dump( $web_rechte );
40
    //dump( $web_rechte );
Zeile 38... Zeile 41...
38
 
41
 
39
    $_SESSION["jquery_js"] = "/js/jquery-1.7.2.min.js";
42
    $_SESSION["jquery_js"] = "/js/jquery-1.7.2.min.js";
40
    $_SESSION["jquery_ui_js"] = "/js/jquery-ui-1.8.23.custom.min.js";
43
    $_SESSION["jquery_ui_js"] = "/js/jquery-ui-1.8.23.custom.min.js";