- Timestamp:
- 11/01/21 11:18:15 (3 years ago)
- Branches:
- master
- Children:
- d95fdd2
- Parents:
- 1451c6f
- Location:
- app/Http
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/DepartmentsController.php
r1451c6f r190db9f 11 11 use App\Models\User; 12 12 use App\Notifications\NewDepartmentCreated; 13 use App\Notifications\NewFolderCreated; 13 14 use Carbon\Carbon; 14 15 use App\Http\Controllers\Controller; -
app/Http/Controllers/Dashboard/FoldersController.php
r1451c6f r190db9f 151 151 152 152 $users = User::all(); 153 Notification::send($users, new NewFolderCreated("New folder created"));154 153 155 154 $folder->location = $location; … … 246 245 } 247 246 248 if (auth()->user()->hasPermission("delete_ all_folders")) {247 if (auth()->user()->hasPermission("delete_data")) { 249 248 250 249 foreach ($files as $file) { -
app/Http/Requests/Dashboard/FolderRequest.php
r1451c6f r190db9f 19 19 if ($this->isMethod("patch")) { 20 20 $folder = Folder::find($this->route("id")); 21 return auth()->user()->hasPermission(" edit_all_folders") || ($folder->user->id == auth()->user()->id);21 return auth()->user()->hasPermission("manage_all_folders") || ($folder->user->id == auth()->user()->id); 22 22 } 23 23
Note:
See TracChangeset
for help on using the changeset viewer.