Changeset 190db9f for app/Http/Requests
- Timestamp:
- 11/01/21 11:18:15 (3 years ago)
- Branches:
- master
- Children:
- d95fdd2
- Parents:
- 1451c6f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.