panel.file.rename

Permission to rename a file

Target Data

ui

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

action

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

Example

<?php

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