Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Restrict Access To Path

Muah edited this page May 30, 2018 · 9 revisions

let's say you have this structure

root "/"
  |_users
    |_admin
      |_pdfs
        |_billings
    |_testing
  |_clients
  |_others

and you want to allow access to only pdfs, so the params would be

@include('MediaManager::_manager', ['restrict' => [
    'path' => 'users/admin/pdfs', 
    'uploadTypes' => ['image/*', 'application/pdf'], // mime-types
    'uploadsize' => 5 // in MB
]])

all the params are optional, so you can use only what u need.

Notes

when the path param is used, some changes to the editor are made

  • hide

    • new-folder btn
    • move/copy btn
    • breadcrumb/path bar
    • folders
  • navigation is disabled

Ps:

make sure to refresh the cache when u switch this mode on or off

Clone this wiki locally