- Timestamp:
- 11/01/21 11:18:15 (3 years ago)
- Branches:
- master
- Children:
- d95fdd2
- Parents:
- 1451c6f
- Location:
- database/seeders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
database/seeders/PermissionsTableSeeder.php
r1451c6f r190db9f 23 23 ["id" => "5", "name" => "view_all_departments"], // Access all departments to view 24 24 ["id" => "6", "name" => "view_all_folders"], // Access all folders to view 25 ["id" => "7", "name" => "edit_all_folders"], // Edit all folders 26 ["id" => "8", "name" => "edit_folder"], // Edit your folder/s 27 ["id" => "9", "name" => "delete_all_folders"], // Delete all folder/s 28 ["id" => "10", "name" => "delete_folder"], // Delete your folder/s 29 ["id" => "11", "name" => "view_all_files"], // View all files 30 ["id" => "12", "name" => "manage_all_files"], // Manage all files 31 ["id" => "13", "name" => "manage_file_types"], // Access file types 32 ["id" => "14", "name" => "edit_user_data"], // Access file types 33 ["id" => "15", "name" => "export_data"], // Export data 34 ["id" => "16", "name" => "download_data"], // Download data 25 ["id" => "7", "name" => "view_all_files"], // View all files 26 ["id" => "8", "name" => "manage_all_files"], // Manage all files 27 ["id" => "9", "name" => "manage_file_types"], // Access file types 28 ["id" => "10", "name" => "export_data"], // Export data 29 ["id" => "11", "name" => "download_data"], // Download data 30 ["id" => "12", "name" => "delete_data"], // Delete data 35 31 ]); 36 32 } -
database/seeders/RolesPermissionsTableSeeder.php
r1451c6f r190db9f 28 28 ["role_id" => 1, "permission_id" => 11], 29 29 ["role_id" => 1, "permission_id" => 12], 30 ["role_id" => 1, "permission_id" => 13],31 ["role_id" => 1, "permission_id" => 14],32 ["role_id" => 1, "permission_id" => 15],33 ["role_id" => 1, "permission_id" => 16],34 30 35 31 // Referent 36 32 ["role_id" => 2, "permission_id" => 1], 33 ["role_id" => 2, "permission_id" => 3], 37 34 ["role_id" => 2, "permission_id" => 4], 38 35 ["role_id" => 2, "permission_id" => 5], … … 40 37 ["role_id" => 2, "permission_id" => 7], 41 38 ["role_id" => 2, "permission_id" => 8], 42 ["role_id" => 2, "permission_id" => 9],43 ["role_id" => 2, "permission_id" => 10],44 39 ["role_id" => 2, "permission_id" => 11], 45 ["role_id" => 2, "permission_id" => 12],46 ["role_id" => 2, "permission_id" => 14],47 ["role_id" => 2, "permission_id" => 15],48 ["role_id" => 2, "permission_id" => 16],49 40 50 41 // Viewer 51 42 ["role_id" => 3, "permission_id" => 5], 52 43 ["role_id" => 3, "permission_id" => 6], 53 ["role_id" => 3, "permission_id" => 11] 44 ["role_id" => 3, "permission_id" => 7], 45 ["role_id" => 3, "permission_id" => 11], 54 46 ]); 55 47 }
Note:
See TracChangeset
for help on using the changeset viewer.