source: database/seeders/PermissionsTableSeeder.php@ deff0bc

Last change on this file since deff0bc was 190db9f, checked in by beratkjufliju <kufliju@…>, 3 years ago

edited user permissions

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[7304c7f]1<?php
2
3namespace Database\Seeders;
4
5use Illuminate\Database\Seeder;
6
[194a359]7
8
[7304c7f]9class PermissionsTableSeeder extends Seeder
10{
11 /**
12 * Run the database seeds.
13 *
14 * @return void
15 */
16 public function run()
17 {
[194a359]18 \DB::table('permissions')->insert([
[0df7a93]19 ["id" => "1", "name" => "view_all_users"], // Create new user
[195c3cf]20 ["id" => "2", "name" => "manage_all_users"], // Access all users to manage
21 ["id" => "3", "name" => "manage_all_departments"], // Access all departments to manage
22 ["id" => "4", "name" => "manage_all_folders"], // Access all folders to manage
23 ["id" => "5", "name" => "view_all_departments"], // Access all departments to view
24 ["id" => "6", "name" => "view_all_folders"], // Access all folders to view
[190db9f]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
[194a359]31 ]);
[7304c7f]32 }
33}
Note: See TracBrowser for help on using the repository browser.