Changeset 190db9f for database/seeders


Ignore:
Timestamp:
11/01/21 11:18:15 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
d95fdd2
Parents:
1451c6f
Message:

edited user permissions

Location:
database/seeders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • database/seeders/PermissionsTableSeeder.php

    r1451c6f r190db9f  
    2323            ["id" => "5", "name" => "view_all_departments"],        // Access all departments to view
    2424            ["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
    3531        ]);
    3632    }
  • database/seeders/RolesPermissionsTableSeeder.php

    r1451c6f r190db9f  
    2828            ["role_id" => 1, "permission_id" => 11],
    2929            ["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],
    3430
    3531            // Referent
    3632            ["role_id" => 2, "permission_id" => 1],
     33            ["role_id" => 2, "permission_id" => 3],
    3734            ["role_id" => 2, "permission_id" => 4],
    3835            ["role_id" => 2, "permission_id" => 5],
     
    4037            ["role_id" => 2, "permission_id" => 7],
    4138            ["role_id" => 2, "permission_id" => 8],
    42             ["role_id" => 2, "permission_id" => 9],
    43             ["role_id" => 2, "permission_id" => 10],
    4439            ["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],
    4940
    5041            // Viewer
    5142            ["role_id" => 3, "permission_id" => 5],
    5243            ["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],
    5446        ]);
    5547    }
Note: See TracChangeset for help on using the changeset viewer.