Changeset 1c17e70
- Timestamp:
- 10/24/21 21:22:38 (3 years ago)
- Branches:
- develop, master
- Children:
- 159e7df
- Parents:
- 112ba6d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
database/seeders/PermissionsTableSeeder.php
r112ba6d r1c17e70 28 28 ["id" => "10", "name" => "delete_folder"], // Delete your folder/s 29 29 ["id" => "11", "name" => "view_all_files"], // View all files 30 ["id" => "12", "name" => "manage_all_files"], // Accessall files30 ["id" => "12", "name" => "manage_all_files"], // Manage all files 31 31 ["id" => "13", "name" => "manage_file_types"], // Access file types 32 32 ["id" => "14", "name" => "edit_user_data"], // Access file types 33 33 ["id" => "15", "name" => "export_data"], // Export data 34 34 ["id" => "16", "name" => "download_data"], // Download data 35 ["id" => "17", "name" => "validation_data"] // File validations36 35 ]); 37 36 } -
database/seeders/RolesPermissionsTableSeeder.php
r112ba6d r1c17e70 32 32 ["role_id" => 1, "permission_id" => 15], 33 33 ["role_id" => 1, "permission_id" => 16], 34 ["role_id" => 1, "permission_id" => 17],35 34 36 35 // Referent … … 46 45 ["role_id" => 2, "permission_id" => 11], 47 46 ["role_id" => 2, "permission_id" => 12], 48 ["role_id" => 2, "permission_id" => 13],49 47 ["role_id" => 2, "permission_id" => 14], 50 48 ["role_id" => 2, "permission_id" => 15], -
resources/views/dashboard/settings/index.blade.php
r112ba6d r1c17e70 24 24 <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> 25 25 <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')) 27 27 <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> 28 28 @endif … … 235 235 </div> 236 236 <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')) 238 238 <div class="card"> 239 239 <div class="card-body">
Note:
See TracChangeset
for help on using the changeset viewer.