Changeset 190db9f for app/Http/Requests


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

edited user permissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Requests/Dashboard/FolderRequest.php

    r1451c6f r190db9f  
    1919        if ($this->isMethod("patch")) {
    2020            $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);
    2222        }
    2323
Note: See TracChangeset for help on using the changeset viewer.