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:
resources/views/dashboard/folders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • resources/views/dashboard/folders/files.blade.php

    r1451c6f r190db9f  
    107107                                        </a>
    108108                                            @endif
    109                                             @if(auth()->user()->hasPermission('manage_all_files'))
     109                                            @if(auth()->user()->hasPermission('delete_data'))
    110110                                        <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#deleteModal_{{$file->id}}">
    111111                                            Delete
  • resources/views/dashboard/folders/index.blade.php

    r1451c6f r190db9f  
    152152                                            <a href="{{ route("dashboard.folders.downloadFolder", ['id' => $folder->id]) }}" class="dropdown-item">Download</a>
    153153                                            @endif
    154                                             @if(auth()->user()->hasPermission('manage_all_folders'))
     154                                            @if(auth()->user()->hasPermission('delete_data'))
    155155                                            <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#deleteModal_{{$folder->id}}">Delete</a>
    156156                                            @endif
Note: See TracChangeset for help on using the changeset viewer.