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:
app/Http/Controllers/Dashboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    r1451c6f r190db9f  
    1111use App\Models\User;
    1212use App\Notifications\NewDepartmentCreated;
     13use App\Notifications\NewFolderCreated;
    1314use Carbon\Carbon;
    1415use App\Http\Controllers\Controller;
  • app/Http/Controllers/Dashboard/FoldersController.php

    r1451c6f r190db9f  
    151151
    152152        $users = User::all();
    153         Notification::send($users, new NewFolderCreated("New folder created"));
    154153
    155154        $folder->location = $location;
     
    246245        }
    247246
    248         if (auth()->user()->hasPermission("delete_all_folders")) {
     247        if (auth()->user()->hasPermission("delete_data")) {
    249248
    250249            foreach ($files as $file) {
Note: See TracChangeset for help on using the changeset viewer.