panel.file.replace

Permission to replace an existing file

Target Data

ui

$this->target()->page()
$this->target()->file()

action

$this->target()->page()
$this->target()->file()
$this->target()->upload()

Example

<?php

// site/roles/editor.php
return [
  'name'        => 'Editor',
  'default'     => false,
  'permissions' => [
    '*'                  => true,
    'panel.file.replace' => false
  ]
];