Changeset 1c17e70


Ignore:
Timestamp:
10/24/21 21:22:38 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
159e7df
Parents:
112ba6d
Message:

bug fixes

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/PermissionsTableSeeder.php

    r112ba6d r1c17e70  
    2828            ["id" => "10", "name" => "delete_folder"],              // Delete your folder/s
    2929            ["id" => "11", "name" => "view_all_files"],                 // View all files
    30             ["id" => "12", "name" => "manage_all_files"],               // Access all files
     30            ["id" => "12", "name" => "manage_all_files"],               // Manage all files
    3131            ["id" => "13", "name" => "manage_file_types"],              // Access file types
    3232            ["id" => "14", "name" => "edit_user_data"],                 // Access file types
    3333            ["id" => "15", "name" => "export_data"],                // Export data
    3434            ["id" => "16", "name" => "download_data"],              // Download data
    35             ["id" => "17", "name" => "validation_data"]                 // File validations
    3635        ]);
    3736    }
  • database/seeders/RolesPermissionsTableSeeder.php

    r112ba6d r1c17e70  
    3232            ["role_id" => 1, "permission_id" => 15],
    3333            ["role_id" => 1, "permission_id" => 16],
    34             ["role_id" => 1, "permission_id" => 17],
    3534
    3635            // Referent
     
    4645            ["role_id" => 2, "permission_id" => 11],
    4746            ["role_id" => 2, "permission_id" => 12],
    48             ["role_id" => 2, "permission_id" => 13],
    4947            ["role_id" => 2, "permission_id" => 14],
    5048            ["role_id" => 2, "permission_id" => 15],
  • resources/views/dashboard/settings/index.blade.php

    r112ba6d r1c17e70  
    2424                        <a class="nav-link {{$active_tab == 'account' ? 'active' : ""}}" id="account-tab" data-toggle="pill" href="#account" role="tab" aria-controls="account" aria-selected="true">Account</a>
    2525                        <a class="nav-link {{$active_tab == 'security' ? 'active' : ""}}" id="security-tab" data-toggle="pill" href="#security" role="tab" aria-controls="security" aria-selected="false">Security</a>
    26                         @if(auth()->user()->hasPermission('validation_data'))
     26                        @if(auth()->user()->hasPermission('manage_file_types'))
    2727                        <a class="nav-link {{$active_tab == 'file-types' ? 'active' : ""}}" id="file-types-tab" data-toggle="pill" href="#file-types" role="tab" aria-controls="file-types" aria-selected="false">File validation</a>
    2828                        @endif
     
    235235                        </div>
    236236                        <div class="tab-pane {{$active_tab == 'file-types' ? 'active' : ""}}" id="file-types" role="tabpanel" aria-labelledby="file-types-tab">
    237                             @if(auth()->user()->hasPermission('validation_data'))
     237                            @if(auth()->user()->hasPermission('manage_file_types'))
    238238                            <div class="card">
    239239                                    <div class="card-body">
Note: See TracChangeset for help on using the changeset viewer.