Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1109 Revision 1110
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
    if ( isset( $_SESSION["admin"]["uId"] ) )
29
    if ( isset( $_SESSION["admin"]["uid"] ) )
30
    {
30
    {
31
        $uId = $_SESSION["admin"]["uId"];
31
        $uId = $_SESSION["admin"]["uid"];
32
        $admin = $_SESSION["admin"]["user"]->admin;
32
        $admin = $_SESSION["admin"]["user"]->admin;
33
        $user_rechte = $GLOBALS["web_rechte"];
33
        $user_rechte = $GLOBALS["web_rechte"];
34
        if ( !$admin )
34
        if ( !$admin )
35
        {
35
        {
36
            $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();